sysctl: unregister tables before freeing bitmap
Summary
| CVE | CVE-2026-142922 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 04:18:32 UTC |
| Updated | 2026-12-03 04:18:32 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
sysctl: unregister tables before freeing bitmap
The table registered for bitmap_0001 retains a pointer to
test_data.bitmap_0001. unregister_sysctl_table() prevents new handlers
from starting and waits for active handlers to finish.
test_sysctl_exit() currently frees the bitmap before unregistering the
table. A concurrent read during module removal can therefore enter
proc_do_large_bitmap() while the bitmap is freed. KASAN reports a
slab-use-after-free in _find_next_bit().
Unregister all tables before freeing the bitmap so the unregister rundown
provides the required lifetime boundary.
The unmodified module reproduced the use-after-free in three KASAN runs.
With this change, three runs each completed 100 load, read and unload race
rounds without a kernel diagnostic. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 2ea622b887e74497ce5aac5bfe247502b5786f56 dc5a593dd369101aa31a0a060e29d005b5f2be2b git |
Not specified |
| CNA |
Linux |
Linux |
affected 2ea622b887e74497ce5aac5bfe247502b5786f56 1435e294d4b7e9b11cb9cd19ebf0ff718489ae7c git |
Not specified |
| CNA |
Linux |
Linux |
affected 2ea622b887e74497ce5aac5bfe247502b5786f56 ff452703fa2c8b6b5aa7c2046d46bd19caaf7726 git |
Not specified |
| CNA |
Linux |
Linux |
affected 2ea622b887e74497ce5aac5bfe247502b5786f56 238dfe02fb0a9f72d7fd275d74ce80f13923ef31 git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.2 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.2 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.120 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.65 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.6 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/1435e294d4b7e9b11cb9cd19ebf0ff718489ae7c |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/dc5a593dd369101aa31a0a060e29d005b5f2be2b |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/238dfe02fb0a9f72d7fd275d74ce80f13923ef31 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/ff452703fa2c8b6b5aa7c2046d46bd19caaf7726 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.