{"api_version":"1","generated_at":"2026-12-04T04:55:09+00:00","cve":"CVE-2026-143356","urls":{"html":"https://cve.report/CVE-2026-143356","api":"https://cve.report/api/cve/CVE-2026-143356.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143356","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143356"},"summary":{"title":"bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:24","updated_at":"2026-12-03 10:18:24"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/8f8283320db7bbd21adc9612c8c296c462ce0b40","name":"https://git.kernel.org/stable/c/8f8283320db7bbd21adc9612c8c296c462ce0b40","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/566ae93254cbaa43bf9bc21dbd4cd779c76ef400","name":"https://git.kernel.org/stable/c/566ae93254cbaa43bf9bc21dbd4cd779c76ef400","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5679431a57d75040a41292666fb4f1bd7187cba8","name":"https://git.kernel.org/stable/c/5679431a57d75040a41292666fb4f1bd7187cba8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cd03b01e40a650d61f5fbadd48927d82037a5050","name":"https://git.kernel.org/stable/c/cd03b01e40a650d61f5fbadd48927d82037a5050","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/50791fe37754db0ccfcdf8391ae7d5b8c69a2734","name":"https://git.kernel.org/stable/c/50791fe37754db0ccfcdf8391ae7d5b8c69a2734","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18","name":"https://git.kernel.org/stable/c/0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143356","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143356","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 566ae93254cbaa43bf9bc21dbd4cd779c76ef400 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 8f8283320db7bbd21adc9612c8c296c462ce0b40 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 5679431a57d75040a41292666fb4f1bd7187cba8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 50791fe37754db0ccfcdf8391ae7d5b8c69a2734 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 cd03b01e40a650d61f5fbadd48927d82037a5050 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.276 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.227 5.15.* 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":{"cve_year":"2026","cve_id":"143356","cve":"CVE-2026-143356","epss":"0.003790000","percentile":"0.340040000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/core/filter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"566ae93254cbaa43bf9bc21dbd4cd779c76ef400","status":"affected","version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","versionType":"git"},{"lessThan":"8f8283320db7bbd21adc9612c8c296c462ce0b40","status":"affected","version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","versionType":"git"},{"lessThan":"5679431a57d75040a41292666fb4f1bd7187cba8","status":"affected","version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","versionType":"git"},{"lessThan":"50791fe37754db0ccfcdf8391ae7d5b8c69a2734","status":"affected","version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","versionType":"git"},{"lessThan":"cd03b01e40a650d61f5fbadd48927d82037a5050","status":"affected","version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","versionType":"git"},{"lessThan":"0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18","status":"affected","version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/core/filter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.18"},{"lessThan":"4.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.276","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.227","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":"5.10.276","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.227","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"4.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:11.620Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143356","datePublished":"2026-12-03T09:22:11.620Z","dateReserved":"2026-12-03T03:10:28.368Z","dateUpdated":"2026-12-03T09:22:11.620Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:24","lastModifiedDate":"2026-12-03 10:18:24","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143356","Ordinal":"1","Title":"bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()","CVE":"CVE-2026-143356","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143356","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()"}]}}}