{"id":"CVE-2026-138901","summary":"PCI/DOE: Fix double free of a duplicate feature's sysfs name","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/DOE: Fix double free of a duplicate feature's sysfs name\n\nWhen a DOE feature is reported twice, sysfs_add_file_to_group() fails\nwith -EEXIST for the second copy and pci_doe_sysfs_feature_populate()\nfrees that attribute's name, but leaves the pointer in place.\npci_doe_sysfs_feature_remove() frees every name again when the device\nis removed, or when a later feature fails to register, so the name is\nfreed twice:\n\n  BUG: KASAN: double-free in pci_doe_sysfs_feature_remove+0x117/0x1b0\n  Call Trace:\n   kfree+0x11a/0x420\n   pci_doe_sysfs_feature_remove+0x117/0x1b0\n   pci_doe_sysfs_teardown+0x90/0xf0\n   pci_remove_bus_device+0x128/0x2e0\n   pci_stop_and_remove_bus_device_locked+0x1d/0x30\n   remove_store+0xd2/0xf0\n\nClear the pointer after freeing the name.","modified":"2026-11-30T15:01:27.662054225Z","published":"2026-11-30T13:26:02.491Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138901.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5ad79778884bb2a69378e5a03c51a4d334d68350"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5ed7a6aed407e83d7a5b4972bd553d764544b7ab"},{"type":"WEB","url":"https://git.kernel.org/stable/c/624ee129620a054466b6a29d98cd7a40ccc239cd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138901.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138901"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2311ab1820fed26caf0095d38ade892770ea574d"},{"fixed":"5ed7a6aed407e83d7a5b4972bd553d764544b7ab"},{"fixed":"5ad79778884bb2a69378e5a03c51a4d334d68350"},{"fixed":"624ee129620a054466b6a29d98cd7a40ccc239cd"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138901.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.15.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138901.json"}}],"schema_version":"1.9.2"}