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.
Published: 2026-10-18
Score: 3.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Patch
AI Analysis

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.

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

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

No advisories yet.

History

Tue, 20 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200
CWE-758

Tue, 20 Oct 2026 12:45:00 +0000

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


Sun, 18 Oct 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200
CWE-758

Sun, 18 Oct 2026 15:30:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:22:09.980Z

Reserved: 2026-09-25T10:25:14.358Z

Link: CVE-2026-98584

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:10.983

Modified: 2026-10-19T10:19:19.270

Link: CVE-2026-98584

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-18T00:00:00Z

Links: CVE-2026-98584 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T22:00:15Z

Weaknesses
  • CWE-908

    Use of Uninitialized Resource