{"api_version":"1","generated_at":"2026-12-04T05:37:28+00:00","cve":"CVE-2026-143272","urls":{"html":"https://cve.report/CVE-2026-143272","api":"https://cve.report/api/cve/CVE-2026-143272.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143272","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143272"},"summary":{"title":"ip6mr: Serialize multicast router socket ownership","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nip6mr: Serialize multicast router socket ownership\n\nMRT6_TABLE checks whether the socket owns its current table before\nacquiring RTNL. MRT6_INIT also looks up its table before taking RTNL.\nConsequently, concurrent TABLE and INIT calls can initialize the old\ntable and then change the socket's selected table. Another INIT can\nregister the same socket in the new table.\n\nrawv6_close() calls ip6mr_sk_done(), which clears only the first table\nowned by the socket. After the socket's RCU-delayed free, the other\ntable retains a dangling mroute_sk pointer. A subsequent multicast cache\nreport passes that pointer to sock_queue_rcv_skb_reason(). This produces\na KASAN slab-use-after-free in sk_filter_trim_cap().\n\nLook up the selected table in ip6mr_sk_init() after acquiring RTNL.\nLikewise, re-read the current table and check its owner under RTNL in\nMRT6_TABLE before updating the selection. This preserves the single-table\nownership invariant shared with ip6mr_sk_done(), without changing the\nlocking of the other multicast socket options.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:11","updated_at":"2026-12-04 04:17:46"},"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/0978e904f7e1470f793a6d095a5413a47b31a7df","name":"https://git.kernel.org/stable/c/0978e904f7e1470f793a6d095a5413a47b31a7df","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f9ca379fec83686acc41e97ee714c99544abbc16","name":"https://git.kernel.org/stable/c/f9ca379fec83686acc41e97ee714c99544abbc16","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c6b41de4dd9f2d6856d8d8d292348f7961034152","name":"https://git.kernel.org/stable/c/c6b41de4dd9f2d6856d8d8d292348f7961034152","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3ebf0303d121825f2cff9d050b6e4f8a6b85214d","name":"https://git.kernel.org/stable/c/3ebf0303d121825f2cff9d050b6e4f8a6b85214d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143272","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143272","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d1db275dd3f6e4182c4c4b4a1ac6287925d60569 3ebf0303d121825f2cff9d050b6e4f8a6b85214d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d1db275dd3f6e4182c4c4b4a1ac6287925d60569 0978e904f7e1470f793a6d095a5413a47b31a7df git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d1db275dd3f6e4182c4c4b4a1ac6287925d60569 f9ca379fec83686acc41e97ee714c99544abbc16 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d1db275dd3f6e4182c4c4b4a1ac6287925d60569 c6b41de4dd9f2d6856d8d8d292348f7961034152 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.35","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.35 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * 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/ipv6/ip6mr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3ebf0303d121825f2cff9d050b6e4f8a6b85214d","status":"affected","version":"d1db275dd3f6e4182c4c4b4a1ac6287925d60569","versionType":"git"},{"lessThan":"0978e904f7e1470f793a6d095a5413a47b31a7df","status":"affected","version":"d1db275dd3f6e4182c4c4b4a1ac6287925d60569","versionType":"git"},{"lessThan":"f9ca379fec83686acc41e97ee714c99544abbc16","status":"affected","version":"d1db275dd3f6e4182c4c4b4a1ac6287925d60569","versionType":"git"},{"lessThan":"c6b41de4dd9f2d6856d8d8d292348f7961034152","status":"affected","version":"d1db275dd3f6e4182c4c4b4a1ac6287925d60569","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/ipv6/ip6mr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.35"},{"lessThan":"2.6.35","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"2.6.35","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nip6mr: Serialize multicast router socket ownership\n\nMRT6_TABLE checks whether the socket owns its current table before\nacquiring RTNL. MRT6_INIT also looks up its table before taking RTNL.\nConsequently, concurrent TABLE and INIT calls can initialize the old\ntable and then change the socket's selected table. Another INIT can\nregister the same socket in the new table.\n\nrawv6_close() calls ip6mr_sk_done(), which clears only the first table\nowned by the socket. After the socket's RCU-delayed free, the other\ntable retains a dangling mroute_sk pointer. A subsequent multicast cache\nreport passes that pointer to sock_queue_rcv_skb_reason(). This produces\na KASAN slab-use-after-free in sk_filter_trim_cap().\n\nLook up the selected table in ip6mr_sk_init() after acquiring RTNL.\nLikewise, re-read the current table and check its owner under RTNL in\nMRT6_TABLE before updating the selection. This preserves the single-table\nownership invariant shared with ip6mr_sk_done(), without changing the\nlocking of the other multicast socket options."}],"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 owning state is created by setsockopt(SOL_IPV6, MRT6_INIT) and setsockopt(SOL_IPV6, MRT6_TABLE) on an AF_INET6 SOCK_RAW IPPROTO_ICMPV6 socket. sock_common_setsockopt calls rawv6_setsockopt, then ipv6_setsockopt and do_ipv6_setsockopt, which call ip6mr_sk_init and store the new id in raw6_sk(sk)->ip6mr_table. That is the path the fix changes.\nAC:L - do_ipv6_setsockopt calls ip6_mroute_setsockopt before sockopt_lock_sock, so the attacker races two of their own threads: MRT6_TABLE's pre-RTNL mroute_sk check against MRT6_INIT's pre-RTNL table lookup. They MRT6_ADD_MIF on the surviving table, add an RTM_NEWRULE for RTNL_FAMILY_IP6MR selecting it, close through rawv6_close, and inject the cache-miss packet.\nPR:L - ip6_mroute_setsockopt allows MRT6_TABLE only when ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN) or the socket is already mroute_sk, and inet6_create allows this SOCK_RAW only when ns_capable(net->user_ns, CAP_NET_RAW). Both hold for the root of a user namespace that owns the netns (unshare -Urn).\nUI:N - The same attacker opens the ICMPV6 raw socket, races MRT6_INIT with MRT6_TABLE, adds the vif, installs the IP6MR rule, closes the socket, and sends the IPv6 multicast packet that reaches ip6_mr_input and ip6mr_cache_report.\nS:U - ip6mr_cache_report dereferences mr_table.mroute_sk in the kernel that allocated the raw socket. The resulting struct sock use-after-free stays inside that kernel, the same security authority as the vulnerable ip6mr code.\nC:H - ip6mr_sk_done nulls mroute_sk on only the first matching table and breaks, so after the SOCK_RCU_FREE grace period ip6mr_cache_report still hands the freed sock to sock_queue_rcv_skb_reason. sk_filter_trim_cap then reads sk->sk_filter and sk flags from the reclaimed slab, the KASAN use-after-free the fix describes, which yields a kernel read primitive.\nI:H - sock_queue_rcv_skb_reason continues into __sock_queue_rcv_skb, which links the skb onto sk_receive_queue and calls sk->sk_data_ready, while sk_filter_trim_cap runs the bpf prog at sk->sk_filter when that pointer is non-NULL. Spraying the freed sock slot turns those writes and indirect calls into kernel code execution.\nA:H - Once the second table's mroute_sk dangles, the next ip6mr_cache_report path reaches sk_filter_trim_cap on freed memory. The fix commit reports that as a KASAN slab-use-after-free, which faults and oopses the kernel."}]}],"providerMetadata":{"dateUpdated":"2026-12-04T03:32:05.050Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3ebf0303d121825f2cff9d050b6e4f8a6b85214d"},{"url":"https://git.kernel.org/stable/c/0978e904f7e1470f793a6d095a5413a47b31a7df"},{"url":"https://git.kernel.org/stable/c/f9ca379fec83686acc41e97ee714c99544abbc16"},{"url":"https://git.kernel.org/stable/c/c6b41de4dd9f2d6856d8d8d292348f7961034152"}],"title":"ip6mr: Serialize multicast router socket ownership","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143272","datePublished":"2026-12-03T09:21:13.728Z","dateReserved":"2026-12-03T03:10:28.363Z","dateUpdated":"2026-12-04T03:32:05.050Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:11","lastModifiedDate":"2026-12-04 04:17:46","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":"143272","Ordinal":"1","Title":"ip6mr: Serialize multicast router socket ownership","CVE":"CVE-2026-143272","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143272","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nip6mr: Serialize multicast router socket ownership\n\nMRT6_TABLE checks whether the socket owns its current table before\nacquiring RTNL. MRT6_INIT also looks up its table before taking RTNL.\nConsequently, concurrent TABLE and INIT calls can initialize the old\ntable and then change the socket's selected table. Another INIT can\nregister the same socket in the new table.\n\nrawv6_close() calls ip6mr_sk_done(), which clears only the first table\nowned by the socket. After the socket's RCU-delayed free, the other\ntable retains a dangling mroute_sk pointer. A subsequent multicast cache\nreport passes that pointer to sock_queue_rcv_skb_reason(). This produces\na KASAN slab-use-after-free in sk_filter_trim_cap().\n\nLook up the selected table in ip6mr_sk_init() after acquiring RTNL.\nLikewise, re-read the current table and check its owner under RTNL in\nMRT6_TABLE before updating the selection. This preserves the single-table\nownership invariant shared with ip6mr_sk_done(), without changing the\nlocking of the other multicast socket options.","Type":"Description","Title":"ip6mr: Serialize multicast router socket ownership"}]}}}