{"id":"CVE-2026-139343","aliases":["CVE-2026-139343"],"related":[],"kind":"vulnerability","state":"published","title":"ipv4: use RCU protection in inet_netconf_get_devconf()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv4: use RCU protection in inet_netconf_get_devconf()\n\ninet_netconf_get_devconf() runs without RTNL. It uses dev_get_by_index()\nand in_dev_get() to pin the device and its in_device while the reply is\nallocated and filled.\n\nin_dev_get() is not safe for a lockless caller. Since commit 9d40c84cf5bc\n(\"net: devinet: Reduce refcount before grace period\"), inetdev_destroy()\ndrops the final reference before the RCU grace period. A reader can load\ndev->ip_ptr, then call refcount_inc() on a zero refcount after\nin_dev_free_rcu() has been queued, and keep using the in_device once it\nhas been freed.\n\nNone of these references are needed. An in_device is freed after an RCU\ngrace period, ipv4_devconf is embedded in it, and\ninet_netconf_fill_devconf() does not sleep.\n\nAllocate the skb first, then perform the lookup and the fill under\nrcu_read_lock(), using dev_get_by_index_rcu() and __in_dev_get_rcu(),\nlike inet_netconf_dump_devconf() already does.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv4: use RCU protection in inet_netconf_get_devconf()\n\ninet_netconf_get_devconf() runs without RTNL. It uses dev_get_by_index()\nand in_dev_get() to pin the device and its in_device while the reply is\nallocated and filled.\n\nin_dev_get() is not safe for a lockless caller. Since commit 9d40c84cf5bc\n(\"net: devinet: Reduce refcount before grace period\"), inetdev_destroy()\ndrops the final reference before the RCU grace period. A reader can load\ndev->ip_ptr, then call refcount_inc() on a zero refcount after\nin_dev_free_rcu() has been queued, and keep using the in_device once it\nhas been freed.\n\nNone of these references are needed. An in_device is freed after an RCU\ngrace period, ipv4_devconf is embedded in it, and\ninet_netconf_fill_devconf() does not sleep.\n\nAllocate the skb first, then perform the lookup and the fill under\nrcu_read_lock(), using dev_get_by_index_rcu() and __in_dev_get_rcu(),\nlike inet_netconf_dump_devconf() already does.","source":"cvelist"}],"published":"2026-11-30T13:33:53.124Z","modified":"2026-12-01T06:17:42.543Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","fixed":"65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5","status":"affected"},{"type":"git","introduced":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","fixed":"f069745ffcea66a6bde5ade49e5145e7bd9d74ce","status":"affected"},{"type":"git","introduced":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","fixed":"188ec7dfa015e9fa6ad809447589c950185762e9","status":"affected"},{"type":"git","introduced":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","fixed":"b2039a6dd36b5c89142bfb95bc0205be8abcc600","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f069745ffcea66a6bde5ade49e5145e7bd9d74ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/188ec7dfa015e9fa6ad809447589c950185762e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2039a6dd36b5c89142bfb95bc0205be8abcc600","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139343","url":"https://www.cve.org/CVERecord?id=CVE-2026-139343","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:21.019Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139343","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139343","licence":"Public domain","modified":"2026-12-01T06:17:42.543Z"}],"updatedAt":"2026-12-01T06:32:21.014Z","epss":{"score":0.00186,"percentile":0.0863,"date":"2026-12-01T12:00:22.000Z"}}