CVE-2026-98584

net/sched: fix potential stack infoleak in em_text_dump()

Published Oct 18, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net/sched: fix potential stack infoleak in em_text_dump()

em_text_dump() allocates struct tcf_em_text on the stack without zeroing
it. strscpy() writes the algorithm name and a NUL terminator into
conf.algo[], leaving the remaining bytes uninitialised. nla_put_nohdr()
then copies the full struct to the netlink response.

KMSAN on Linux 7.2-rc6 reports two kernel-infoleak splats from this path,
one triggered via "tc filter show" and one via a raw RTM_GETTFILTER dump:

BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x1c9/0x2620
nla_put_nohdr+0x83/0x130
em_text_dump+0x291/0x550
Local variable conf created at: em_text_dump+0x5d/0x550
Bytes 168-179 of 199 are uninitialized

I am not certain whether this constitutes a real security problem in
practice: the test was conducted in a controlled KMSAN environment and
the leaked stack bytes may or may not carry sensitive data on actual
production kernels. I am reporting it because KMSAN flagged it as a
kernel-infoleak and the fix is straightforward. I can provide a
userspace reproducer on request.

The original code used strncpy() which zero-pads to the destination size.
Commit b04202d6065c ("net/sched: replace strncpy with strscpy") replaced
it with strscpy(), which does not pad, creating this condition.
Zero-initialising the struct closes it.

Analysis

AI-generated

Technical impact

In the Linux kernel, the function em_text_dump() allocates a structure on the stack without performing any zero‑initialisation. The function then copies only part of the structure into a temporary buffer using strscpy(), leaving the remainder of the structure uninitialised. When nla_put_nohdr() copies the entire structure to a netlink response, the uninitialised bytes are sent to user space. This can expose arbitrary, unpredictable data that was present on the stack, potentially revealing sensitive information such as cryptographic keys, passwords, or other secrets. The vulnerability provides a direct information‑disclosure flaw without any capability to execute code or elevate privileges.

Affected Systems

All Linux kernel builds that include the net/sched code before the zero‑initialisation change are affected. The fix was applied in commit b04202d6065c, which replaced strncpy with strscpy and added zero‑initialisation to struct tcf_em_text. Therefore, any Linux kernel version prior to that commit, regardless of distribution, is vulnerable. Distributions that ship kernels older than the mentioned commit without applying the upstream patch must update their kernel.

Risk and Exploitability

The CVSS score of 3.3 indicates low severity, and the EPSS score is reported as less than 1%, suggesting a very low probability of exploitation at this time. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that the information leak can be triggered by a local user who executes the ‘tc filter show’ command or performs a raw RTM_GETTFILTER dump via netlink. Such commands typically require CAP_NET_ADMIN privileges. Thus, the attack vector is likely local privileged access rather than remote exploitation, limiting the overall risk to users with kernel‑level privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the zero‑initialisation patch for struct tcf_em_text (commit b04202d6065c).
  • If a kernel upgrade is not immediately possible, apply the upstream patch that zero‑initialises the structure and rebuild the kernel.
  • Restrict access to the netlink interface so that only users with appropriate privileges can run commands like ‘tc filter show’; enforcing proper permission checks limits the attacker’s ability to trigger the leak.

Generated by OpenCVE AI on October 22, 2026 at 21:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-200
CWE-758
Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-200
CWE-758
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/sched: fix potential stack infoleak in em_text_dump() em_text_dump() allocates struct tcf_em_text on the stack without zeroing it. strscpy() writes the algorithm name and a NUL terminator into conf.algo[], leaving the remaining bytes uninitialised. nla_put_nohdr() then copies the full struct to the netlink response. KMSAN on Linux 7.2-rc6 reports two kernel-infoleak splats from this path, one triggered via "tc filter show" and one via a raw RTM_GETTFILTER dump: BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x1c9/0x2620 nla_put_nohdr+0x83/0x130 em_text_dump+0x291/0x550 Local variable conf created at: em_text_dump+0x5d/0x550 Bytes 168-179 of 199 are uninitialized I am not certain whether this constitutes a real security problem in practice: the test was conducted in a controlled KMSAN environment and the leaked stack bytes may or may not carry sensitive data on actual production kernels. I am reporting it because KMSAN flagged it as a kernel-infoleak and the fix is straightforward. I can provide a userspace reproducer on request. The original code used strncpy() which zero-pads to the destination size. Commit b04202d6065c ("net/sched: replace strncpy with strscpy") replaced it with strscpy(), which does not pad, creating this condition. Zero-initialising the struct closes it.
Title net/sched: fix potential stack infoleak in em_text_dump()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:22 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Low
Public date
Oct 18, 2026, 12:00 AM