PT-2026-151731

CVE-2026-99520

·

Published

2026-11-19

·

Updated

2026-11-19

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾