CVE-2025-40023
drm/xe/vf: Don't expose sysfs attributes not applicable for VFs
Mitigation
- Upgrade Linux to 500dad428e5b0de4c1bdfa893822a6e06ddad0b5 or later.
Who should check
- Anyone running Linux >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < bacbadedbba737da8ae6e0464bc0971c30cda4cb; >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < 500dad428e5b0de4c1bdfa893822a6e06ddad0b5
- Anyone running Linux 6.16
Vulnerability facts
- Affected
- Linux >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < bacbadedbba737da8ae6e0464bc0971c30cda4cb; >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < 500dad428e5b0de4c1bdfa893822a6e06ddad0b5; Linux 6.16
- Fixed in
- Linux 500dad428e5b0de4c1bdfa893822a6e06ddad0b5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: drm/xe/vf: Don't expose sysfs attributes not applicable for VFs VFs can't read BMG_PCIE_CAP(0x138340) register nor access PCODE (already guarded by the info.skip_pcode flag) so we shouldn't expose attributes that require any of them to avoid errors like: [] xe 0000:03:00.1: [drm] Tile0: GT0: VF is trying to read an \ inaccessible register 0x138340+0x0 [] RIP: 0010:xe_gt_sriov_vf_read32+0x6c2/0x9a0 [xe] [] Call Trace: [] xe_mmio_read32+0x110/0x280 [xe] [] auto_link_downgrade_capable_show+0x2e/0x70 [xe] [] dev_attr_show+0x1a/0x70 [] sysfs_kf_seq_show+0xaa/0x120 [] kernfs_seq_show+0x41/0x60 (cherry picked from commit a2d6223d224f333f705ed8495bf8bebfbc585c35)
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40023. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40023.md Affected: Linux >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < bacbadedbba737da8ae6e0464bc0971c30cda4cb; >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < 500dad428e5b0de4c1bdfa893822a6e06ddad0b5; Linux 6.16 Fixed in: Linux 500dad428e5b0de4c1bdfa893822a6e06ddad0b5 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-40023 being exploited?
There is no confirmed exploitation: CVE-2025-40023 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40023?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-40023?
Linux >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < bacbadedbba737da8ae6e0464bc0971c30cda4cb; >= 0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff, < 500dad428e5b0de4c1bdfa893822a6e06ddad0b5; Linux 6.16.
Is there a fix for CVE-2025-40023?
Yes. Fixed in Linux 500dad428e5b0de4c1bdfa893822a6e06ddad0b5. Upgrade Linux to 500dad428e5b0de4c1bdfa893822a6e06ddad0b5 or later.
How do I check if I'm affected by CVE-2025-40023?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.