CVE-2025-40278

net: sched: act_ife: initialize struct tc_ife to fix KMSAN kernel-infoleak

No CVSS score yet EPSS 0.23%

Published 6 Dec 2025 Updated 2 Jun 2026 CNA: Linux

Check your servers for CVE-2025-40278

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40278 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

net: sched: act_ife: initialize struct tc_ife to fix KMSAN kernel-infoleak

Fix a KMSAN kernel-infoleak detected by the syzbot .

[net?] KMSAN: kernel-infoleak in __skb_datagram_iter

In tcf_ife_dump(), the variable 'opt' was partially initialized using a designatied initializer. While the padding bytes are reamined uninitialized. nla_put() copies the entire structure into a netlink message, these uninitialized bytes leaked to userspace.

Initialize the structure with memset before assigning its fields to ensure all members and padding are cleared prior to beign copied.

This change silences the KMSAN report and prevents potential information leaks from the kernel memory.

This fix has been tested and validated by syzbot. This patch closes the bug reported at the following syzkaller link and ensures no infoleak.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.2% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before 918e063304f945fb93be9bb70cacea07d0b730ea
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before 5e3644ef147bf7140259dfa4cace680c9b26fe8b
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before 37f0680887c5aeba9a433fe04b35169010568bb1
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before 2191662058443e0bcc28d11694293d8339af6dde
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before a676a296af65d33725bdf7396803180957dbd92e
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before d1dbbbe839647486c9b893e5011fe84a052962df
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before c8f51dad94cbb88054e2aacc272b3ce1ed11fb1e
affected from ef6980b6becb1afd9d82a4f043749a10ae81bf14, before ce50039be49eea9b4cd8873ca6eccded1b4a130a
Other versions: unaffected
Linux
affected 4.6
unaffected before 4.6
unaffected from 5.4.302 up to and including 5.4.*
unaffected from 5.10.247 up to and including 5.10.*
unaffected from 5.15.197 up to and including 5.15.*
unaffected from 6.1.159 up to and including 6.1.*
unaffected from 6.6.117 up to and including 6.6.*
unaffected from 6.12.59 up to and including 6.12.*
unaffected from 6.17.9 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40278 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40278

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40278
trivy image --scanners vuln IMAGE | grep CVE-2025-40278

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40278 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.