{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143356","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.368Z","datePublished":"2026-12-03T09:22:11.620Z","dateUpdated":"2026-12-03T09:22:11.620Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-03T09:22:11.620Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()\n\nbpf_skb_net_hdr_push() and bpf_skb_net_hdr_pop() change skb->data and\nskb->mac_header by len. That is correct in a tc prog, where skb->data is\nthe MAC header. But bpf_lwt_seg6_adjust_srh() calls them in an End.BPF\nprog, where skb->data is the network header. The MAC header does not move:\n\n  before push  |       free       | MAC header   | IPv6 | SRH | payload\n               ^ head             ^ mac_header   ^ data\n  today        |       free       | MAC h| IPv6 | SRH   + len | payload\n               ^ head     ^ mac_header   ^ data\n  this patch   |   free   | MAC header   | IPv6 | SRH   + len | payload\n               ^ head     ^ mac_header   ^ data\n\nUsers of skb_mac_header() get incorrect bytes until __dev_queue_xmit() sets\nskb->mac_header again. skb_cow_head() reserves only len bytes. Thus the\n16-bit offset skb->mac_header can wrap. A push also changes the \"not set\"\nvalue. In both cases skb_mac_header() points after the skb.\n\nMove the MAC header too. Pass len + skb->mac_len to skb_cow_head(). Keep\nthe \"not set\" value. The second Fixes tag is for this case. Since that\ncommit an End.BPF prog can get an skb with skb->mac_header not set."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"],"versions":[{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","lessThan":"566ae93254cbaa43bf9bc21dbd4cd779c76ef400","status":"affected","versionType":"git"},{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","lessThan":"8f8283320db7bbd21adc9612c8c296c462ce0b40","status":"affected","versionType":"git"},{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","lessThan":"5679431a57d75040a41292666fb4f1bd7187cba8","status":"affected","versionType":"git"},{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","lessThan":"50791fe37754db0ccfcdf8391ae7d5b8c69a2734","status":"affected","versionType":"git"},{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","lessThan":"cd03b01e40a650d61f5fbadd48927d82037a5050","status":"affected","versionType":"git"},{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","lessThan":"0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"],"versions":[{"version":"4.18","status":"affected"},{"version":"0","lessThan":"4.18","status":"unaffected","versionType":"semver"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","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":"4.18","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/566ae93254cbaa43bf9bc21dbd4cd779c76ef400"},{"url":"https://git.kernel.org/stable/c/8f8283320db7bbd21adc9612c8c296c462ce0b40"},{"url":"https://git.kernel.org/stable/c/5679431a57d75040a41292666fb4f1bd7187cba8"},{"url":"https://git.kernel.org/stable/c/50791fe37754db0ccfcdf8391ae7d5b8c69a2734"},{"url":"https://git.kernel.org/stable/c/cd03b01e40a650d61f5fbadd48927d82037a5050"},{"url":"https://git.kernel.org/stable/c/0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18"}],"title":"bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()","x_generator":{"engine":"bippy-1.2.0"}}}}