HIGH Introduced in 6.3
sunrpc PoolStats Corruption
CVE-2026-89547
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.2MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Check svc pool percpu counter allocation __svc_create() initializes three per-pool percpu_counter stats and ignores every return value. On SMP, percpu_counter_init() fails when __alloc_percpu_gfp() cannot satisfy the allocation, leaving the failed counter with fbc->counters == NULL and its embedded raw_spinlock_t, list_head, and count never initialized. __svc_create() returns the half-constructed svc_serv to nfsd, lockd, or the NFS callback service anyway. Once that service is live, the hot-path increments in svc_xprt_enqueue(), svc_handle_xprt(), and svc_pool_wake_idle_thread() reach a counter whose backing pointer is NULL. The pointer is a per-cpu offset, so the access does not fault: it resolves to offset zero of the current CPU's per-cpu area and silently corrupts whatever variable lives there. A /proc/fs/nfsd/pool_stats read walks the same NULL per-cpu storage and returns garbage, and on CONFIG_DEBUG_SPINLOCK or lockdep it splats on the never-initialized lock. Creating the broken service requires a percpu allocation failure during RPC server startup, so it is reachable only by a local administrator under memory pressure or fault injection; a remote peer cannot induce the bad state on its own. Check each percpu_counter_init() return value in __svc_create() and fail when an allocation fails, unwinding the counters already set up in the current pool and in every pool initialized before it. A discrete percpu_counter_destroy() per counter at teardown frees each per-cpu allocation exactly once.
02KernelScan AI Analysis
Risk summary
A local administrator who can trigger memory pressure during RPC service startup can cause percpu counter allocation to fail silently, leaving NULL-backed counters that corrupt per-CPU memory on every hot-path increment. The corruption affects confidentiality, integrity, and availability of the kernel, but requires high privileges and a specific allocation-failure condition to trigger.
Vulnerability analysis
When an RPC service (nfsd, lockd, or the NFS callback service) is created, the kernel initializes per-pool statistics counters but ignores allocation failures. If the per-CPU counter allocation fails under memory pressure, the service starts with counters whose backing storage is NULL; subsequent hot-path operations silently write to offset zero of the current CPU's per-Cpu area, corrupting unrelated kernel variables, and reading pool stats returns garbage. The fix checks each counter allocation and fails service creation if any allocation fails, properly unwinding already-initialized counters. Only a local administrator can reach this path, and only under memory pressure or fault injection; a remote peer cannot induce the broken state.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.3 | 6.12.109 | 3a2b7649de76 |
| 6.6 | 6.3 | 6.6.157 | 57ac7d899409 |
| mainline | 6.3 | 7.3-rc1 | 43e11e164704 |
| 7.2 | 6.3 | 7.2.4 | b541a1504697 |
| 6.18 | 6.3 | 6.18.50 | bd1ef2cfb44d |
| cip/6.12 | 6.3 | 6.12.111-cip32 | 3a2b7649de76 |