{"id":"CVE-2026-142894","summary":"net/rds: do not fail init when CONFIG_SYSCTL=n","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/rds: do not fail init when CONFIG_SYSCTL=n\n\nWith CONFIG_SYSCTL=n, register_net_sysctl() and register_net_sysctl_sz()\nare inline stubs that return NULL.  rds_sysctl_init(),\nrds_ib_sysctl_init() and rds_tcp_init_net() all treat that NULL as\n-ENOMEM, so RDS refuses to initialize at all even though every tunable\nhas a sane compiled-in default.\n\nWhen RDS is built in, that is worse than a missing feature: the failed\nrds_init() destroys rds_wq, but the rds_rdma initcall still runs, and\nwhen rds_ib_sysctl_init() fails the same way, the error path in\nrds_ib_init() flushes the already freed workqueue:\n\n  BUG: KASAN: slab-use-after-free in touch_wq_lockdep_map\n  ...\n   __flush_workqueue\n   rds_ib_init\n   rds_rdma_init\n  ...\n  Allocated by task 1:\n   alloc_workqueue_noprof\n   rds_threads_init\n   rds_init\n  ...\n  Freed by task 0:\n   kfree\n   rcu_do_batch\n\nOnly treat the NULL return as a failure when sysctl support is actually\ncompiled in.  The exit paths need no change: unregister_net_sysctl_table()\nis an empty stub with CONFIG_SYSCTL=n and already tolerates a NULL header\notherwise.\n\nThe underlying problem of built-in transports initializing after\nrds_init() has failed is independent of sysctl and is addressed\nseparately.","modified":"2026-12-03T05:01:07.690577491Z","published":"2026-12-03T03:25:45.254Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142894.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0dd3cabf0fc8c675ee550681e6b9bf8f4e11378d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a44fb05720d1ce02c2c1e1731614595819db0202"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e797c9a33afe7ef07c9af1bd42f453e353b73467"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fbea154a86641d2543a871aa19f7c77a366de542"},{"type":"WEB","url":"https://git.kernel.org/stable/c/feed9ef31f2e10d24591896ffe67aca28c5b9bf9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142894.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142894"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3e5048495c8569bfdd552750e0315973c61e7c93"},{"fixed":"e797c9a33afe7ef07c9af1bd42f453e353b73467"},{"fixed":"feed9ef31f2e10d24591896ffe67aca28c5b9bf9"},{"fixed":"a44fb05720d1ce02c2c1e1731614595819db0202"},{"fixed":"0dd3cabf0fc8c675ee550681e6b9bf8f4e11378d"},{"fixed":"fbea154a86641d2543a871aa19f7c77a366de542"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142894.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.30"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142894.json"}}],"schema_version":"1.9.2"}