{"id":"CVE-2026-143130","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:46.270","lastModified":"2026-12-03T10:17:46.270","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["net/sched/act_ife.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","lessThan":"be110f7d7c4a8cf978ff720f2d759d47aa64d8c7","versionType":"git","status":"affected"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","lessThan":"0c0b0215b8879806210234052f9790a0531fda69","versionType":"git","status":"affected"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","lessThan":"289268b8ac0fc8b7a443b0a69c109533761de286","versionType":"git","status":"affected"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","lessThan":"b0f2e314b55d84c2f775843bcc3e625e6c5ba1bc","versionType":"git","status":"affected"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","lessThan":"fbecb50e6e7ada17bf3896c541b36054e7e5302f","versionType":"git","status":"affected"},{"version":"ef6980b6becb1afd9d82a4f043749a10ae81bf14","lessThan":"7d02c07c738bf5c4b9a7d7ef498fbf465c446853","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["net/sched/act_ife.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"4.6","status":"affected"},{"version":"0","lessThan":"4.6","versionType":"semver","status":"unaffected"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0c0b0215b8879806210234052f9790a0531fda69","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/289268b8ac0fc8b7a443b0a69c109533761de286","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7d02c07c738bf5c4b9a7d7ef498fbf465c446853","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b0f2e314b55d84c2f775843bcc3e625e6c5ba1bc","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/be110f7d7c4a8cf978ff720f2d759d47aa64d8c7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fbecb50e6e7ada17bf3896c541b36054e7e5302f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}