CVE-2026-142894: net/rds: do not fail init when CONFIG_SYSCTL=n
In the Linux kernel, the following vulnerability has been resolved:
net/rds: do not fail init when CONFIGSYSCTL=n
With CONFIGSYSCTL=n, registernetsysctl() and registernetsysctlsz() are inline stubs that return NULL. rdssysctlinit(), rdsibsysctlinit() and rdstcpinitnet() all treat that NULL as -ENOMEM, so RDS refuses to initialize at all even though every tunable has a sane compiled-in default.
When RDS is built in, that is worse than a missing feature: the failed rdsinit() destroys rdswq, but the rdsrdma initcall still runs, and when rdsibsysctlinit() fails the same way, the error path in rdsibinit() flushes the already freed workqueue:
BUG: KASAN: slab-use-after-free in touchwqlockdepmap ... flushworkqueue rdsibinit rdsrdmainit ... Allocated by task 1: allocworkqueuenoprof rdsthreadsinit rdsinit ... Freed by task 0: kfree rcudobatch
Only treat the NULL return as a failure when sysctl support is actually compiled in. The exit paths need no change: unregisternetsysctltable() is an empty stub with CONFIGSYSCTL=n and already tolerates a NULL header otherwise.
The underlying problem of built-in transports initializing after rdsinit() has failed is independent of sysctl and is addressed separately.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6
Event History
Frequently Asked Questions
Which systems are exposed to the use-after-free condition?
Systems running the Linux kernel with RDS built in and CONFIG_SYSCTL disabled are exposed. In this configuration, RDS initialization fails, destroys its workqueue, and a later built-in RDS RDMA transport initialization path can flush that freed workqueue.
Does an attacker need network access or RDS credentials to trigger this?
The described failure occurs during kernel initialization, not through a described network request or authenticated RDS operation. The provided data does not identify any attacker-controlled trigger.
What can be done if updating is not immediately possible?
Avoid the affected configuration by enabling CONFIG_SYSCTL, or avoid building RDS and its built-in transports into the kernel. The issue is specifically caused by CONFIG_SYSCTL being disabled while RDS initialization proceeds.
How can I determine whether a system is affected?
Check whether the kernel was built with CONFIG_SYSCTL disabled and RDS built in. Affected boot paths may show RDS initialization failures followed by a KASAN slab-use-after-free involving __flush_workqueue, rds_ib_init, and rds_rdma_init.