CVE-2026-99520: pps: generators: fix use-after-free when closing a removed device

Published Nov 19, 2026
·
Updated

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

pps: generators: fix use-after-free when closing a removed device

The cdev of a PPS generator is embedded in struct ppsgendevice, but nothing ties the lifetime of that structure to the cdev: ppsgen is freed by the release function of its device, and an open file holds a device reference only until ppsgencdevrelease() drops it.

When the generator is unregistered while /dev/pps-genN is open, that putdevice() drops the last reference and frees ppsgen, and fput() then calls cdevput() on the freed cdev:

BUG: KASAN: slab-use-after-free in cdevput+0x53/0x60 Read of size 8 at addr ffff88801383e138 by task ppsgen64/149 Call Trace: cdevput+0x53/0x60 fput+0x745/0xad0 fputclosesync+0xd9/0x1b0 x64sysclose+0x86/0xf0 ... Freed by task 149: kfree+0x25a/0x6d0 devicerelease+0xca/0x3c0 kobjectput+0x169/0x320 ppsgencdevrelease+0x51/0x80 fput+0x36a/0xad0

pps.c had the same bug, fixed in commit c79a39dc8d06 ("pps: Fix a use-after-free").

Fix it the usual way: embed the struct device in ppsgendevice and register both with cdevdeviceadd(). This makes the device the parent of the cdev, so the cdev holds a device reference until the last file is closed.

Affected Software

4 affected componentsFixes available
linux/kernel>=6.14.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2
debian/linux<7.3.3-1
7.3.3-1
debian/linux
6.1.176-16.1.192-26.12.107-16.12.117-17.3.4-17.3.5-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.61
  2. Upgrade

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

    Fixed in 7.3.2
  3. Upgrade

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

    Fixed in 7.3.3-1
  4. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1
  5. Compensating control

    Embed struct device in pps_gen_device and register the device and cdev together with cdev_device_add() so the device reference keeps the structure alive until the last open file is closed.

Event History

Nov 19, 2026
CVE Published
via MITRE·02:44 PM
Data Sourced
via MITRE·02:44 PM
Description
Data Sourced
via OSV·02:44 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 PM
Description

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