CVE-2026-72431

Source
https://cve.org/CVERecord?id=CVE-2026-72431
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72431.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72431
Downstream
Published
2026-08-15T05:56:46.821Z
Modified
2026-08-18T03:30:56.847576724Z
Summary
alloc_tag: fix use-after-free in /proc/allocinfo after module unload
Details

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

alloc_tag: fix use-after-free in /proc/allocinfo after module unload

allocinfostart() only reinitializes the codetag iterator at position 0. For subsequent reads (position > 0), it reuses cached iterator state from the previous batch. allocinfostop() 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) ---- ---- allocinfostart(pos=0) downread(modlock) allocinfoshow() ... allocinfostop() upread(modlock) codetagunloadmodule() kfree(cmod) releasemoduletags() ... freemodmem() allocinfostart(pos=N) downread(modlock) // reuses cached iter, skips re-init allocinfo_show() ct->filename <-- UAF

After freemodmem() frees the module's .rodata, allocinfo_show() dereferences ct->filename, ct->function which point there.

Save the iterator state in allocinfonext() and resume from it in allocinfostart() with codetagnextct(), which detects module removal via idr_find() returning NULL and skips to the next module.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72431.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9f44df50fee4d2f6cb374177244ccfa9f0a5cc95
Fixed
37e3e8a2c3bfdd503209f043f8bbfbdcf5a1d92f
Fixed
008ceffd44040f809aead6d7bef7cb1210c4149a
Fixed
2956268efc457cb05d29c1bf94de1e8e684d7bbc

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72431.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72431.json"