AZL-117730: CVE-2026-142922 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
sysctl: unregister tables before freeing bitmap
The table registered for bitmap0001 retains a pointer to testdata.bitmap0001. unregistersysctltable() prevents new handlers from starting and waits for active handlers to finish.
testsysctlexit() currently frees the bitmap before unregistering the table. A concurrent read during module removal can therefore enter procdolargebitmap() while the bitmap is freed. KASAN reports a slab-use-after-free in findnextbit().
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Unregister all sysctl tables before freeing the bitmap so the unregister rundown prevents new handlers from starting and waits for active handlers to finish.
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
A read must race with module removal: a handler can enter proc_do_large_bitmap() after the bitmap has been freed but before its sysctl table is unregistered. The issue occurs because the table retains a pointer to the bitmap during that interval.
How can I tell whether this race has occurred?
KASAN can report a slab-use-after-free in _find_next_bit(). The issue was reproduced during concurrent load, read, and unload race testing of the unmodified module.