CVE-2025-40278

Source
https://cve.org/CVERecord?id=CVE-2025-40278
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40278.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40278
Downstream
Related
Published
2025-12-06T21:51:01.693Z
Modified
2026-03-11T07:52:45.053987409Z
Summary
net: sched: act_ife: initialize struct tc_ife to fix KMSAN kernel-infoleak
Details

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

net: sched: actife: initialize struct tcife to fix KMSAN kernel-infoleak

Fix a KMSAN kernel-infoleak detected by the syzbot .

[net?] KMSAN: kernel-infoleak in __skbdatagramiter

In tcfifedump(), 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40278.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ef6980b6becb1afd9d82a4f043749a10ae81bf14
Fixed
918e063304f945fb93be9bb70cacea07d0b730ea
Fixed
5e3644ef147bf7140259dfa4cace680c9b26fe8b
Fixed
37f0680887c5aeba9a433fe04b35169010568bb1
Fixed
2191662058443e0bcc28d11694293d8339af6dde
Fixed
a676a296af65d33725bdf7396803180957dbd92e
Fixed
d1dbbbe839647486c9b893e5011fe84a052962df
Fixed
c8f51dad94cbb88054e2aacc272b3ce1ed11fb1e
Fixed
ce50039be49eea9b4cd8873ca6eccded1b4a130a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40278.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.6.0
Fixed
5.4.302
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.247
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.197
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.159
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.117
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.59
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40278.json"