{"id":"CVE-2026-143130","state":"PUBLISHED","title":"net/sched: act_ife: encode configured zero metadata values","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_ife: encode configured zero metadata values\n\nReported by shaos <shawnq1@163.com> with a reproducer for the 32-bit\ncase, which was reproduced and verified in our test environment.\n\nThe issue:\nife_check_meta_u32() and ife_check_meta_u16() both reserve eight bytes\nof metadata for a configured value even when that value is zero, but the\nmatching encoder returns without calling ife_tlv_meta_encode(). The\nencoder therefore writes neither the TLV header nor its value, while the\nenclosing IFE length still includes the reserved bytes, exposing stale\nskb headroom contents to the peer.\n\nThe 32-bit helper has been present since the IFE action was introduced\n(v4.6); the 16-bit helper was added with the 16-bit metadata helpers used\nby the skbtcindex callback (v4.9). Both defects predate the oldest\nsupported stable kernel (5.10), so they are fixed together in this patch.\nEach hunk keeps its own Fixes: tag for provenance.\n\nThe fix:\nEncode any configured value, including zero; skip the TLV only when\nthere is neither a configured nor a runtime value. The runtime fallback\nis unchanged.\n\nA raw TCA_IFE_METALST netlink request is needed to express the\nconfigured zero: the IFE_META_SKBMARK attribute carries four zero\npayload bytes for the u32 helper, and IFE_META_TCINDEX two zero payload\nbytes for the 16-bit helper (not an absent or zero-length attribute).\nStock tc cannot build these requests; \"use mark 0x0\" emits no mark\nattribute and \"allow mark\" emits a zero-length one.\n\nConditions to recreate the bug:\nCONFIG_NET_ACT_IFE=y, CONFIG_NET_IFE_SKBMARK=y,\nCONFIG_NET_IFE_SKBTCINDEX=y, CONFIG_NET_CLS_MATCHALL=y,\nCONFIG_NET_SCH_INGRESS=y, CONFIG_USER_NS=y, CONFIG_NET_NS=y,\nCONFIG_VETH=y. In a fresh user and network namespace create a veth pair\nand attach clsact to the egress side. Install a matchall filter whose\nife encode action carries a zero skb mark (or a zero tcindex) in\nTCA_IFE_METALST. Send a frame through the veth and inspect the IFE\nmetadata in the received frame. The metadata region is eight bytes but\nholds neither a valid TLV header nor a value; it exposes prior headroom\ncontents. Setting the value to a nonzero one does not trigger the leak.\nThe namespace needs CAP_NET_ADMIN; no additional privilege is required.\nWith the fix the zero TLVs are 0001000800000000 (u32) and\n0005000600000000 (u16).","publishedAt":"2026-12-03T09:19:38.558Z","updatedAt":"2026-12-03T09:19:38.558Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"be110f7d7c4a8cf978ff720f2d759d47aa64d8c7","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"0c0b0215b8879806210234052f9790a0531fda69","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"289268b8ac0fc8b7a443b0a69c109533761de286","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"b0f2e314b55d84c2f775843bcc3e625e6c5ba1bc","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"fbecb50e6e7ada17bf3896c541b36054e7e5302f","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"7d02c07c738bf5c4b9a7d7ef498fbf465c446853","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_ife.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_ife.c"]}],"references":["https://git.kernel.org/stable/c/be110f7d7c4a8cf978ff720f2d759d47aa64d8c7","https://git.kernel.org/stable/c/0c0b0215b8879806210234052f9790a0531fda69","https://git.kernel.org/stable/c/289268b8ac0fc8b7a443b0a69c109533761de286","https://git.kernel.org/stable/c/b0f2e314b55d84c2f775843bcc3e625e6c5ba1bc","https://git.kernel.org/stable/c/fbecb50e6e7ada17bf3896c541b36054e7e5302f","https://git.kernel.org/stable/c/7d02c07c738bf5c4b9a7d7ef498fbf465c446853"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143130.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143130","state":"PUBLISHED","datePublished":"2026-12-03T09:19:38.558Z","dateUpdated":"2026-12-03T09:19:38.558Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.352Z"},"containers":{"cna":{"title":"net/sched: act_ife: encode configured zero metadata values","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_ife: encode configured zero metadata values\n\nReported by shaos <shawnq1@163.com> with a reproducer for the 32-bit\ncase, which was reproduced and verified in our test environment.\n\nThe issue:\nife_check_meta_u32() and ife_check_meta_u16() both reserve eight bytes\nof metadata for a configured value even when that value is zero, but the\nmatching encoder returns without calling ife_tlv_meta_encode(). The\nencoder therefore writes neither the TLV header nor its value, while the\nenclosing IFE length still includes the reserved bytes, exposing stale\nskb headroom contents to the peer.\n\nThe 32-bit helper has been present since the IFE action was introduced\n(v4.6); the 16-bit helper was added with the 16-bit metadata helpers used\nby the skbtcindex callback (v4.9). Both defects predate the oldest\nsupported stable kernel (5.10), so they are fixed together in this patch.\nEach hunk keeps its own Fixes: tag for provenance.\n\nThe fix:\nEncode any configured value, including zero; skip the TLV only when\nthere is neither a configured nor a runtime value. The runtime fallback\nis unchanged.\n\nA raw TCA_IFE_METALST netlink request is needed to express the\nconfigured zero: the IFE_META_SKBMARK attribute carries four zero\npayload bytes for the u32 helper, and IFE_META_TCINDEX two zero payload\nbytes for the 16-bit helper (not an absent or zero-length attribute).\nStock tc cannot build these requests; \"use mark 0x0\" emits no mark\nattribute and \"allow mark\" emits a zero-length one.\n\nConditions to recreate the bug:\nCONFIG_NET_ACT_IFE=y, CONFIG_NET_IFE_SKBMARK=y,\nCONFIG_NET_IFE_SKBTCINDEX=y, CONFIG_NET_CLS_MATCHALL=y,\nCONFIG_NET_SCH_INGRESS=y, CONFIG_USER_NS=y, CONFIG_NET_NS=y,\nCONFIG_VETH=y. In a fresh user and network namespace create a veth pair\nand attach clsact to the egress side. Install a matchall filter whose\nife encode action carries a zero skb mark (or a zero tcindex) in\nTCA_IFE_METALST. Send a frame through the veth and inspect the IFE\nmetadata in the received frame. The metadata region is eight bytes but\nholds neither a valid TLV header nor a value; it exposes prior headroom\ncontents. Setting the value to a nonzero one does not trigger the leak.\nThe namespace needs CAP_NET_ADMIN; no additional privilege is required.\nWith the fix the zero TLVs are 0001000800000000 (u32) and\n0005000600000000 (u16)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"be110f7d7c4a8cf978ff720f2d759d47aa64d8c7","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"0c0b0215b8879806210234052f9790a0531fda69","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"289268b8ac0fc8b7a443b0a69c109533761de286","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"b0f2e314b55d84c2f775843bcc3e625e6c5ba1bc","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"fbecb50e6e7ada17bf3896c541b36054e7e5302f","versionType":"git"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","status":"affected","lessThan":"7d02c07c738bf5c4b9a7d7ef498fbf465c446853","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_ife.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_ife.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/be110f7d7c4a8cf978ff720f2d759d47aa64d8c7"},{"url":"https://git.kernel.org/stable/c/0c0b0215b8879806210234052f9790a0531fda69"},{"url":"https://git.kernel.org/stable/c/289268b8ac0fc8b7a443b0a69c109533761de286"},{"url":"https://git.kernel.org/stable/c/b0f2e314b55d84c2f775843bcc3e625e6c5ba1bc"},{"url":"https://git.kernel.org/stable/c/fbecb50e6e7ada17bf3896c541b36054e7e5302f"},{"url":"https://git.kernel.org/stable/c/7d02c07c738bf5c4b9a7d7ef498fbf465c446853"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:38.558Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}