# CVE-2026-138901: PCI/DOE: Fix double free of a duplicate feature's sysfs name

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:26:02.491Z
- Modified: 2026-11-30T14:17:48.130Z
- Assigned by: Linux

## Description

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

PCI/DOE: Fix double free of a duplicate feature's sysfs name

When a DOE feature is reported twice, sysfs_add_file_to_group() fails
with -EEXIST for the second copy and pci_doe_sysfs_feature_populate()
frees that attribute's name, but leaves the pointer in place.
pci_doe_sysfs_feature_remove() frees every name again when the device
is removed, or when a later feature fails to register, so the name is
freed twice:

  BUG: KASAN: double-free in pci_doe_sysfs_feature_remove+0x117/0x1b0
  Call Trace:
   kfree+0x11a/0x420
   pci_doe_sysfs_feature_remove+0x117/0x1b0
   pci_doe_sysfs_teardown+0x90/0xf0
   pci_remove_bus_device+0x128/0x2e0
   pci_stop_and_remove_bus_device_locked+0x1d/0x30
   remove_store+0xd2/0xf0

Clear the pointer after freeing the name.

(As written by CVE List.)

## Affected

- Linux Linux: from 2311ab1820fed26caf0095d38ade892770ea574d before 5ed7a6aed407e83d7a5b4972bd553d764544b7ab; from 2311ab1820fed26caf0095d38ade892770ea574d before 5ad79778884bb2a69378e5a03c51a4d334d68350; from 2311ab1820fed26caf0095d38ade892770ea574d before 624ee129620a054466b6a29d98cd7a40ccc239cd; 6.15 (not affected: before 6.15; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/5ed7a6aed407e83d7a5b4972bd553d764544b7ab>
- <https://git.kernel.org/stable/c/5ad79778884bb2a69378e5a03c51a4d334d68350>
- <https://git.kernel.org/stable/c/624ee129620a054466b6a29d98cd7a40ccc239cd>

## Sources

- CVE List: [CVE-2026-138901](https://www.cve.org/CVERecord?id=CVE-2026-138901), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138901](https://nvd.nist.gov/vuln/detail/CVE-2026-138901), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138901 · Whole record: https://cve.day/CVE-2026-138901.json · Rebuilt by cve.day 2026-11-30T14:32:28.909Z
