AZL-115076: CVE-2026-99548 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix early procfs exposure race
Currently, initcifs() calls cifsprocinit() near the beginning of the function, before INITLISTHEAD, leading to a momentarily uninitialized, but exposed, procfs. If a userspace process reads this empty procfs, iterating over a zeroed listhead leads to a NULL pointer dereference and a kernel oops/panic.
For example, if a delay is added between cifsprocinit() and INITLISTHEAD, and a userspace process is polling /proc/fs/cifs/DebugData, the following oops occurs:
BUG: kernel NULL pointer dereference, address: 0000000000000608 Oops: Oops: 0000 [#1] SMP PTI CPU: 0 UID: 0 PID: 3477 Comm: cat Not tainted 7.3.0-02212-g4df4d2a577db-dirty #6 PREEMPT(lazy) RIP: 0010:cifsdebugdataprocshow+0x103/0xd80 [cifs] Call Trace: <TASK> ? seqreaditer+0x86/0x400 ? seqreaditer+0x86/0x400 seqreaditer+0x183/0x400 procregreaditer+0x62/0x90 copyspliceread+0x215/0x310 splicefiletopipe+0xec/0x1c0 dosplice+0x4b8/0x780 sesyssplice+0x18f/0x250 dosyscall64+0x109/0x330 entrySYSCALL64afterhwframe+0x77/0x7f </TASK>
Fix this by moving cifsprocinit() down in initcifs(), ensuring it runs only after all internal lists, locks, counters, and workqueues are fully ready, but before registering the filesystem. Update the error cleanup ladder and exitcifs() to maintain proper LIFO order.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In init_cifs(), move cifs_proc_init() until after all internal lists, locks, counters, and workqueues are initialized, but before registering the filesystem; update error cleanup and exit_cifs() to maintain proper LIFO order.