{"id":"CVE-2026-138901","aliases":["CVE-2026-138901"],"related":[],"kind":"vulnerability","state":"published","title":"PCI/DOE: Fix double free of a duplicate feature's sysfs name","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:26:02.491Z","modified":"2026-11-30T14:17:48.130Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2311ab1820fed26caf0095d38ade892770ea574d","fixed":"5ed7a6aed407e83d7a5b4972bd553d764544b7ab","status":"affected"},{"type":"git","introduced":"2311ab1820fed26caf0095d38ade892770ea574d","fixed":"5ad79778884bb2a69378e5a03c51a4d334d68350","status":"affected"},{"type":"git","introduced":"2311ab1820fed26caf0095d38ade892770ea574d","fixed":"624ee129620a054466b6a29d98cd7a40ccc239cd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5ed7a6aed407e83d7a5b4972bd553d764544b7ab","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ad79778884bb2a69378e5a03c51a4d334d68350","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/624ee129620a054466b6a29d98cd7a40ccc239cd","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138901","url":"https://www.cve.org/CVERecord?id=CVE-2026-138901","licence":"CVE Terms of Use","modified":"2026-11-30T13:26:02.491Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138901","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138901","licence":"Public domain","modified":"2026-11-30T14:17:48.130Z"}],"updatedAt":"2026-11-30T14:32:28.909Z","epss":{"score":0.00207,"percentile":0.11437,"date":"2026-12-01T12:00:22.000Z"}}