{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139280","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.924Z","datePublished":"2026-11-30T13:33:17.636Z","dateUpdated":"2026-12-01T05:42:08.566Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:08.566Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_set_rbtree: narrow down range completion to anonymous sets\n\nFor anonymous sets, when adjacent ranges are found, the end element is\nnot added to the set to pack the set representation. Use next start\nelement to complete this interval.\n\nJérémy Jean says:\n\nConsider two ranges in a netfilter verdict map:\n* keys 10-19 accept packets, and\n* keys 30-39 jump to chain 'victim'.\nNow, delete the end marker at 20. The lookup array now uses element 30\nas the first range's end, so an INTERVAL_END query for key 15 returns\nelement 30, including its jump verdict and chain pointer. This can make\nKASAN reports a UAF after the GC releases reference chain for 30 that\nhas expired:\n\n  BUG: KASAN: slab-use-after-free in nft_verdict_dump+0xdd/0x110\n  Read of size 8 at addr ff110000009dfb58 by task repro/50\n  ...\n  Call Trace:\n  ...\n   nft_verdict_dump+0xdd/0x110\n   nft_data_dump+0x4d/0x80\n   nf_tables_fill_setelem+0x30b/0x8a0\n   ? __asan_memcpy+0x3c/0x60\n   nf_tables_fill_setelem_info+0x1b0/0x200\n   nft_get_set_elem+0x3fd/0x4b0\n  ...\n  Freed by task 24:\n  ...\n   kfree+0x1a5/0x280\n   nf_tables_trans_destroy_work+0x2cb/0x520"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - All attacker input arrives as local nfnetlink messages (NFT_MSG_NEWSETELEM, DELSETELEM, DELCHAIN, GETSETELEM) on an AF_NETLINK socket. No packet or remote peer supplies anything that leads to nft_rbtree_commit() building the bad interval or nft_rbtree_get() returning it. The packet path nft_rbtree_lookup() only returns interval->from.\nAC:L - Every step is the attacker's own, and none is a race. They set the element timeout and delete the lone end element. Their NEWSETELEM sync-GCs the expired element in __nft_rbtree_insert(), then fails with -ENOTEMPTY and aborts the batch. They delete the now-unreferenced chain and issue GETSETELEM with INTERVAL_END. The outcome is deterministic.\nPR:L - nfnetlink_rcv() only checks netlink_net_capable(CAP_NET_ADMIN), so an unprivileged user can hold it via unshare -Urn in their own netns. Named interval maps with timeouts are served by the rbtree backend for single-field keys. No init-namespace capability is needed anywhere on the path.\nUI:N - No victim action is involved. The attacker builds the set, forces the abort, deletes the chain and sends the GET request entirely through their own netlink calls.\nS:U - Both the dangling-pointer read and its effects stay inside the kernel's own security authority. No VM, IOMMU or sandbox boundary is crossed.\nC:H - nft_rbtree_get() returns the next interval's GC'd start element. nft_verdict_dump() then runs nla_put_string(v->chain->name) on the kfree'd nft_chain and copies the result into the netlink reply (objref maps do the same with obj->key.name). If the freed slot is refilled with attacker data, the name pointer is attacker-chosen, which gives an arbitrary kernel read.\nI:N - The dangling chain or object pointer is only read in nf_tables_fill_setelem(). GETSETELEM_RESET touches only the stale element's own expressions, and that element stays allocated until the next commit publishes a new array. I found no write primitive.\nA:H - Reading the freed nft_chain is a slab use-after-free, which KASAN reports. If the refilled slot holds a garbage or non-canonical name pointer, strlen in nla_put_string() faults and oopses the kernel, and the attacker can repeat this at will."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/netfilter/nft_set_rbtree.c"],"versions":[{"version":"e4ea5be0b35fd2f772bb289e235e3836320957bd","lessThan":"60c1c825bdc40a0413d6ca4705b0403ee9489a49","status":"affected","versionType":"git"},{"version":"2aa34191f06fc5af4f70241518a8554370d86054","lessThan":"9e650c0a9f9b9c876826c036b2ab609f159d6f79","status":"affected","versionType":"git"},{"version":"2aa34191f06fc5af4f70241518a8554370d86054","lessThan":"86d47d4c84a1b8470ba3fc16df13ea2a220b74ff","status":"affected","versionType":"git"},{"version":"ef1a8b85cc5fd721a092e86b2ce9907aec7ddf27","status":"affected","versionType":"git"},{"version":"6.18.14","lessThan":"6.18.65","status":"affected","versionType":"semver"},{"version":"6.19.4","lessThan":"6.20","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/netfilter/nft_set_rbtree.c"],"versions":[{"version":"7.0","status":"affected"},{"version":"0","lessThan":"7.0","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.18.14","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19.4"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/60c1c825bdc40a0413d6ca4705b0403ee9489a49"},{"url":"https://git.kernel.org/stable/c/9e650c0a9f9b9c876826c036b2ab609f159d6f79"},{"url":"https://git.kernel.org/stable/c/86d47d4c84a1b8470ba3fc16df13ea2a220b74ff"}],"title":"netfilter: nft_set_rbtree: narrow down range completion to anonymous sets","x_generator":{"engine":"bippy-1.2.0"}}}}