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

Published Nov 30, 2026
·
Updated

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, sysfsaddfiletogroup() fails with -EEXIST for the second copy and pcidoesysfsfeaturepopulate() frees that attribute's name, but leaves the pointer in place. pcidoesysfsfeatureremove() 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 pcidoesysfsfeatureremove+0x117/0x1b0 Call Trace: kfree+0x11a/0x420 pcidoesysfsfeatureremove+0x117/0x1b0 pcidoesysfsteardown+0x90/0xf0 pciremovebusdevice+0x128/0x2e0 pcistopandremovebusdevicelocked+0x1d/0x30 removestore+0xd2/0xf0

Clear the pointer after freeing the name.

Affected Software

5 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.15.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  4. Compensating control

    Clear the sysfs attribute name pointer after freeing the name to prevent a double-free during teardown.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:26 PM
Data Sourced
via MITRE·01:26 PM
Description
Data Sourced
via OSV·01:26 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

What condition is required to trigger the double free?

A PCI DOE feature must be reported twice. Registration of the second copy then fails because its sysfs attribute already exists, leaving a freed name pointer behind.

2

When does the stale pointer get freed a second time?

The second free occurs when the PCI device is removed or when registration of a later DOE feature fails. During teardown, the removal path frees every feature name, including the pointer that was already freed after the duplicate registration failure.

3

How can an affected system be identified?

A KASAN-enabled kernel may report a double-free in pci_doe_sysfs_feature_remove, with teardown-related calls such as pci_doe_sysfs_teardown and PCI device removal in the stack trace. The issue is associated with a device reporting a duplicate DOE feature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203