{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139343","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.928Z","datePublished":"2026-11-30T13:33:53.124Z","dateUpdated":"2026-12-01T05:42:21.019Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:21.019Z"},"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The race is between two local netlink requests on the attacker's own NETLINK_ROUTE socket: RTM_GETNETCONF reaching inet_netconf_get_devconf() (registered RTNL_FLAG_DOIT_UNLOCKED), and RTM_NEWLINK/SETLINK changing a device's MTU or deleting it, which reaches inetdev_destroy() through inetdev_event(). No remote peer supplies any input.\nAC:L - Both sides belong to the attacker: one thread loops RTM_GETNETCONF on the ifindex of its own dummy device while another switches its MTU between 60 and 1500, so inetdev_destroy() and inetdev_init() repeat without limit. The attacker controls scheduling to stall its own reader between the ip_ptr load and refcount_inc in in_dev_get(). A miss just returns a valid ref or -ENODEV.\nPR:L - rtnetlink_rcv_msg() applies no CAP_NET_ADMIN check to RTNL_KIND_GET, so the reader is unprivileged. The writer needs CAP_NET_ADMIN only over the netns that owns the device: after unshare -Urn, the user can create a dummy device (min_mtu=0) and set its MTU below 68 in that netns.\nUI:N - No victim action is needed; the attacker issues both the RTM_GETNETCONF lookups and the MTU or delete requests that free the in_device.\nS:U - The freed in_device is kernel heap memory, and the impact is kernel compromise within the same authority. No VM, IOMMU or sandbox boundary is crossed beyond ordinary local privilege escalation.\nC:H - After refcount_inc on zero, the reader drops RCU and sleeps in nlmsg_new(GFP_KERNEL). inet_netconf_fill_devconf() then copies six s32 values from the freed (possibly reallocated) in_dev->cnf.data into the netlink reply. Reallocating that slot gives the usual read primitives of a kmalloc use-after-free.\nI:H - in_dev_put() then runs refcount_dec_and_test on the freed object's refcnt. If an attacker spray left 1 there, in_dev_finish_destroy() runs on controlled data: netdev_put() on a forged dev pointer and call_rcu(in_dev_free_rcu), which kfree()s a forged mc_hash pointer and the sprayed object. That is an arbitrary-free and double-free write primitive.\nA:H - refcount_inc on zero fires refcount_warn_saturate (REFCOUNT_ADD_UAF), which panics under panic_on_warn, and the use-after-free read and decrement can oops or corrupt slab memory. The trigger can be repeated without limit."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/devinet.c"],"versions":[{"version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","lessThan":"65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5","status":"affected","versionType":"git"},{"version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","lessThan":"f069745ffcea66a6bde5ade49e5145e7bd9d74ce","status":"affected","versionType":"git"},{"version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","lessThan":"188ec7dfa015e9fa6ad809447589c950185762e9","status":"affected","versionType":"git"},{"version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","lessThan":"b2039a6dd36b5c89142bfb95bc0205be8abcc600","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/devinet.c"],"versions":[{"version":"6.9","status":"affected"},{"version":"0","lessThan":"6.9","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5"},{"url":"https://git.kernel.org/stable/c/f069745ffcea66a6bde5ade49e5145e7bd9d74ce"},{"url":"https://git.kernel.org/stable/c/188ec7dfa015e9fa6ad809447589c950185762e9"},{"url":"https://git.kernel.org/stable/c/b2039a6dd36b5c89142bfb95bc0205be8abcc600"}],"title":"ipv4: use RCU protection in inet_netconf_get_devconf()","x_generator":{"engine":"bippy-1.2.0"}}}}