CVE-2026-99520

Not scored yetLast modified Nov 19, 2026

Description

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 pps_gen_device, but nothing ties the lifetime of that structure to the cdev: pps_gen is freed by the release function of its device, and an open file holds a device reference only until pps_gen_cdev_release() drops it.

When the generator is unregistered while /dev/pps-genN is open, that put_device() drops the last reference and frees pps_gen, and __fput() then calls cdev_put() on the freed cdev:

BUG: KASAN: slab-use-after-free in cdev_put+0x53/0x60 Read of size 8 at addr ffff88801383e138 by task ppsgen64/149 Call Trace: cdev_put+0x53/0x60 __fput+0x745/0xad0 fput_close_sync+0xd9/0x1b0 __x64_sys_close+0x86/0xf0 ... Freed by task 149: kfree+0x25a/0x6d0 device_release+0xca/0x3c0 kobject_put+0x169/0x320 pps_gen_cdev_release+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 pps_gen_device and register both with cdev_device_add(). This makes the device the parent of the cdev, so the cdev holds a device reference until the last file is closed.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, < 63dc56500a91591ad9b42e09ca4646b0a4d03406; >= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, < 3c94478114384d97795029160ceb539ade38cc43; >= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, < d19552611cb2eb6329826871565e5309bec2f288
LinuxLinux6.14

References

Timeline

Published
Nov 19, 2026
Last modified
Nov 19, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-99521In the Linux kernel, the following vulnerability has been resolved: rapidio: mport_cdev: fix use-after-free in mport_mm_close() A use-afteCVE-2026-99522In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: avoid use-after-free in icrdma_remove icrdma_remove() dereCVE-2026-995237.8In the Linux kernel, the following vulnerability has been resolved: RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup The DMABUFCVE-2026-99524In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix use-after-free of a local reenq node left on an inactiveCVE-2026-99525In the Linux kernel, the following vulnerability has been resolved: smb: client: fix use-after-free in cifs_ses_add_channel() The error paCVE-2026-99526In the Linux kernel, the following vulnerability has been resolved: smb: client: fix use-after-free infoleak via the readdir resume name CCVE-2026-99527In the Linux kernel, the following vulnerability has been resolved: spmi: Fix potential use-after-free by grabbing of_node reference As noCVE-2026-995287.8In the Linux kernel, the following vulnerability has been resolved: SUNRPC: fix netns use-after-free in write_gssp() While fuzzing with a CVE-2026-99529In the Linux kernel, the following vulnerability has been resolved: wifi: b43: fix use-after-free in b43_bcma_remove() b43_one_core_detachCVE-2026-99536.5Out of bounds read in ANGLE in Google Chrome prior to 148.0.7778.216 allowed a remote attacker to obtain potentially sensitive information fCVE-2026-99530In the Linux kernel, the following vulnerability has been resolved: cgroup: serialize migrations of newly forked processes With favordynmoCVE-2026-99531In the Linux kernel, the following vulnerability has been resolved: ksmbd: verify transform SessionId matches the decrypted header When an
CVE-2026-99520: Unscored | Vulnix