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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **Published:** 2026-11-19T14:44:25.121Z
- **Modified:** 2026-11-19T15:18:07.573Z

## Who should check

- Anyone running Linux \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< 63dc56500a91591ad9b42e09ca4646b0a4d03406; \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< 3c94478114384d97795029160ceb539ade38cc43; \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< d19552611cb2eb6329826871565e5309bec2f288
- Anyone running Linux 6.14

## 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.

## Affected and fixed versions

- Linux: \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< 63dc56500a91591ad9b42e09ca4646b0a4d03406; \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< 3c94478114384d97795029160ceb539ade38cc43; \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< d19552611cb2eb6329826871565e5309bec2f288 (cvelist)
- Linux: 6.14 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99520. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99520.md
Affected: Linux >= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, < 63dc56500a91591ad9b42e09ca4646b0a4d03406; >= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, < 3c94478114384d97795029160ceb539ade38cc43; >= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, < d19552611cb2eb6329826871565e5309bec2f288; Linux 6.14
Fixed in: Linux 63dc56500a91591ad9b42e09ca4646b0a4d03406, Linux 3c94478114384d97795029160ceb539ade38cc43

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99520 being exploited?

There is no confirmed exploitation: CVE-2026-99520 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99520?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99520?

Linux \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< 63dc56500a91591ad9b42e09ca4646b0a4d03406; \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< 3c94478114384d97795029160ceb539ade38cc43; \>= 86b525bed2758878e788c9fb6b8fb281fd61bdb0, \< d19552611cb2eb6329826871565e5309bec2f288; Linux 6.14.

### Is there a fix for CVE-2026-99520?

Yes. Fixed in Linux 63dc56500a91591ad9b42e09ca4646b0a4d03406, Linux 3c94478114384d97795029160ceb539ade38cc43. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99520?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/63dc56500a91591ad9b42e09ca4646b0a4d03406>
- other: <https://git.kernel.org/stable/c/3c94478114384d97795029160ceb539ade38cc43>
- other: <https://git.kernel.org/stable/c/d19552611cb2eb6329826871565e5309bec2f288>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99520>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99520> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99520>
