CVE-2026-138901

Source
https://cve.org/CVERecord?id=CVE-2026-138901
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138901.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138901
Downstream
Published
2026-11-30T13:26:02Z
Modified
2026-11-30T15:01:27Z
Summary
PCI/DOE: Fix double free of a duplicate feature's sysfs name
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138901.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
2311ab1820fed26caf0095d38ade892770ea574d
Fixed
5ed7a6aed407e83d7a5b4972bd553d764544b7ab
Fixed
5ad79778884bb2a69378e5a03c51a4d334d68350
Fixed
624ee129620a054466b6a29d98cd7a40ccc239cd

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected 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"