{"api_version":"1","generated_at":"2026-12-01T06:50:22+00:00","cve":"CVE-2026-139343","urls":{"html":"https://cve.report/CVE-2026-139343","api":"https://cve.report/api/cve/CVE-2026-139343.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139343","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139343"},"summary":{"title":"ipv4: use RCU protection in inet_netconf_get_devconf()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:59","updated_at":"2026-12-01 06:17:42"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5","name":"https://git.kernel.org/stable/c/65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b2039a6dd36b5c89142bfb95bc0205be8abcc600","name":"https://git.kernel.org/stable/c/b2039a6dd36b5c89142bfb95bc0205be8abcc600","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/188ec7dfa015e9fa6ad809447589c950185762e9","name":"https://git.kernel.org/stable/c/188ec7dfa015e9fa6ad809447589c950185762e9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f069745ffcea66a6bde5ade49e5145e7bd9d74ce","name":"https://git.kernel.org/stable/c/f069745ffcea66a6bde5ade49e5145e7bd9d74ce","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139343","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139343","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bbcf91053bb622c4c26a9bfc998d3b0c59227f10 65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bbcf91053bb622c4c26a9bfc998d3b0c59227f10 f069745ffcea66a6bde5ade49e5145e7bd9d74ce git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bbcf91053bb622c4c26a9bfc998d3b0c59227f10 188ec7dfa015e9fa6ad809447589c950185762e9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bbcf91053bb622c4c26a9bfc998d3b0c59227f10 b2039a6dd36b5c89142bfb95bc0205be8abcc600 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/ipv4/devinet.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"65ab9fea1f3607f5ffea13d30eaab8c897fa6fc5","status":"affected","version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","versionType":"git"},{"lessThan":"f069745ffcea66a6bde5ade49e5145e7bd9d74ce","status":"affected","version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","versionType":"git"},{"lessThan":"188ec7dfa015e9fa6ad809447589c950185762e9","status":"affected","version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","versionType":"git"},{"lessThan":"b2039a6dd36b5c89142bfb95bc0205be8abcc600","status":"affected","version":"bbcf91053bb622c4c26a9bfc998d3b0c59227f10","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/ipv4/devinet.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.9"},{"lessThan":"6.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:21.019Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139343","datePublished":"2026-11-30T13:33:53.124Z","dateReserved":"2026-11-30T13:22:15.928Z","dateUpdated":"2026-12-01T05:42:21.019Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:59","lastModifiedDate":"2026-12-01 06:17:42","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139343","Ordinal":"1","Title":"ipv4: use RCU protection in inet_netconf_get_devconf()","CVE":"CVE-2026-139343","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139343","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ipv4: use RCU protection in inet_netconf_get_devconf()"}]}}}