CVE-2025-40023

Source
https://cve.org/CVERecord?id=CVE-2025-40023
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40023.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40023
Downstream
Published
2025-10-24T12:24:58.554Z
Modified
2026-03-10T21:49:11.777048Z
Summary
drm/xe/vf: Don't expose sysfs attributes not applicable for VFs
Details

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 BMGPCIECAP(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:xegtsriovvfread32+0x6c2/0x9a0 [xe] [] Call Trace: [] xemmioread32+0x110/0x280 [xe] [] autolinkdowngradecapableshow+0x2e/0x70 [xe] [] devattrshow+0x1a/0x70 [] sysfskfseqshow+0xaa/0x120 [] kernfsseq_show+0x41/0x60

(cherry picked from commit a2d6223d224f333f705ed8495bf8bebfbc585c35)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40023.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
0e414bf7ad012e55c8a0aa4e91f68cb1cf5801ff
Fixed
bacbadedbba737da8ae6e0464bc0971c30cda4cb
Fixed
500dad428e5b0de4c1bdfa893822a6e06ddad0b5

Affected versions

v6.*
v6.15
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.16
v6.16-rc1
v6.16-rc2
v6.16-rc3
v6.16-rc4
v6.16-rc5
v6.16-rc6
v6.16-rc7
v6.16.1
v6.16.2
v6.16.3
v6.16.4
v6.16.5
v6.16.6
v6.16.7
v6.16.8
v6.16.9
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4
v6.17-rc5
v6.17-rc6
v6.17-rc7

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.16.10

Database specific

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