CVE-2026-142894
not scored yetnet/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 CONFIG_SYSCTL=n
With CONFIG_SYSCTL=n, register_net_sysctl() and register_net_sysctl_sz()
are inline stubs that return NULL. rds_sysctl_init(),
rds_ib_sysctl_init() and rds_tcp_init_net() 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
rds_init() destroys rds_wq, but the rds_rdma initcall still runs, and
when rds_ib_sysctl_init() fails the same way, the error path in
rds_ib_init() flushes the already freed workqueue:
BUG: KASAN: slab-use-after-free in touch_wq_lockdep_map
...
__flush_workqueue
rds_ib_init
rds_rdma_init
...
Allocated by task 1:
alloc_workqueue_noprof
rds_threads_init
rds_init
...
Freed by task 0:
kfree
rcu_do_batch
Only treat the NULL return as a failure when sysctl support is actually
compiled in. The exit paths need no change: unregister_net_sysctl_table()
is an empty stub with CONFIG_SYSCTL=n and already tolerates a NULL header
otherwise.
The underlying problem of built-in transports initializing after
rds_init() has failed is independent of sysctl and is addressed
separately.
- Published
- 3 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= 3e5048495c8569bfdd552750e0315973c61e7c93, < e797c9a33afe7ef07c9af1bd42f453e353b73467; >= 3e5048495c8569bfdd552750e0315973c61e7c93, < feed9ef31f2e10d24591896ffe67aca28c5b9bf9; >= 3e5048495c8569bfdd552750e0315973c61e7c93, < a44fb05720d1ce02c2c1e1731614595819db0202; >= 3e5048495c8569bfdd552750e0315973c61e7c93, < 0dd3cabf0fc8c675ee550681e6b9bf8f4e11378d; >= 3e5048495c8569bfdd552750e0315973c61e7c93, < fbea154a86641d2543a871aa19f7c77a366de542 | e797c9a33afe7ef07c9af1bd42f453e353b73467, feed9ef31f2e10d24591896ffe67aca28c5b9bf9, a44fb05720d1ce02c2c1e1731614595819db0202, 0dd3cabf0fc8c675ee550681e6b9bf8f4e11378d, fbea154a86641d2543a871aa19f7c77a366de542 |
| CVE List | Linux | Linux | = 2.6.30 |
References
- https://git.kernel.org/stable/c/0dd3cabf0fc8c675ee550681e6b9bf8f4e11378d
- https://git.kernel.org/stable/c/a44fb05720d1ce02c2c1e1731614595819db0202
- https://git.kernel.org/stable/c/e797c9a33afe7ef07c9af1bd42f453e353b73467
- https://git.kernel.org/stable/c/fbea154a86641d2543a871aa19f7c77a366de542
- https://git.kernel.org/stable/c/feed9ef31f2e10d24591896ffe67aca28c5b9bf9
History
- 3 Dec 2026 05:06 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 04:06 UTC · CVE List: first stored (published 3 Dec 2026)