# CVE-2026-72431: alloc\_tag: fix use-after-free in /proc/allocinfo after module unload

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **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-08-15T05:56:46.821Z
- **Modified:** 2026-08-17T06:19:10.443Z

## Who should check

- Anyone running Linux \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f; \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 008ceffd44040f809aead6d7bef7cb1210c4149a; \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 2956268efc457cb05d29c1bf94de1e8e684d7bbc
- Anyone running Linux 6.17

## Description

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

alloc\_tag: fix use-after-free in /proc/allocinfo after module unload

allocinfo\_start() only reinitializes the codetag iterator at position 0. 
For subsequent reads (position \> 0), it reuses cached iterator state from
the previous batch.  allocinfo\_stop() drops mod\_lock between read batches,
which allows module unload to complete and free the module memory that the
cached iterator still references:

  CPU0 (read)                        CPU1 (rmmod)
  ----                               ----
  allocinfo\_start(pos=0)
    down\_read(mod\_lock)
    allocinfo\_show()
    ...
  allocinfo\_stop()
    up\_read(mod\_lock)
                                     codetag\_unload\_module()
                                       kfree(cmod)
                                       release\_module\_tags()
                                     ...
                                     free\_mod\_mem()
  allocinfo\_start(pos=N)
    down\_read(mod\_lock)
    // reuses cached iter, skips re-init
  allocinfo\_show()
    ct-\>filename   \<-- UAF

After free\_mod\_mem() frees the module's .rodata, allocinfo\_show()
dereferences ct-\>filename, ct-\>function which point there.

Save the iterator state in allocinfo\_next() and resume from it in
allocinfo\_start() with codetag\_next\_ct(), which detects module removal via
idr\_find() returning NULL and skips to the next module.

## Affected and fixed versions

- Linux: \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f; \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 008ceffd44040f809aead6d7bef7cb1210c4149a; \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 2956268efc457cb05d29c1bf94de1e8e684d7bbc (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- Upgrade Linux to 2956268efc457cb05d29c1bf94de1e8e684d7bbc or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-72431.md
Affected: Linux >= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, < 37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f; >= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, < 008ceffd44040f809aead6d7bef7cb1210c4149a; >= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, < 2956268efc457cb05d29c1bf94de1e8e684d7bbc; Linux 6.17
Fixed in: Linux 37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f, Linux 008ceffd44040f809aead6d7bef7cb1210c4149a, Linux 2956268efc457cb05d29c1bf94de1e8e684d7bbc

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-72431 being exploited?

There is no confirmed exploitation: CVE-2026-72431 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-72431?

It has no CVSS score yet. Unknown.

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

Linux \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f; \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 008ceffd44040f809aead6d7bef7cb1210c4149a; \>= 9f44df50fee4d2f6cb374177244ccfa9f0a5cc95, \< 2956268efc457cb05d29c1bf94de1e8e684d7bbc; Linux 6.17.

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

Yes. Fixed in Linux 37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f, Linux 008ceffd44040f809aead6d7bef7cb1210c4149a, Linux 2956268efc457cb05d29c1bf94de1e8e684d7bbc. Upgrade Linux to 2956268efc457cb05d29c1bf94de1e8e684d7bbc or later.

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

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/37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f>
- other: <https://git.kernel.org/stable/c/008ceffd44040f809aead6d7bef7cb1210c4149a>
- other: <https://git.kernel.org/stable/c/2956268efc457cb05d29c1bf94de1e8e684d7bbc>

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

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