{"id":"CVE-2026-139178","state":"PUBLISHED","title":"net: lan966x: do not inject uninitialised bytes past skb->len","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not inject uninitialised bytes past skb->len\n\nlan966x_port_ifh_xmit() writes the frame to the injection FIFO one\n32-bit word at a time, and pads frames shorter than 60 bytes with zero\nwords.\n\nBefore this patch, the last word is loaded whole even when skb->len is\nnot a multiple of four, so 1 to 3 bytes past the end of the frame are\nread. For a frame shorter than 60 bytes those bytes are also\ntransmitted, as VLD_BYTES marks the whole last word valid and the\npadding starts at the next word.\n\nWrite the trailing bytes from a zeroed word. The number of words written\nand VLD_BYTES are unchanged.\n\nFound by an AI code review agent. Reproduced on a lan9668 board with\nregister injection, by sending a\n57 byte frame and capturing it on the link partner: byte 57 of the\npadded frame was not zero. With the fix all padding bytes are zero.","publishedAt":"2026-11-30T13:32:18.133Z","updatedAt":"2026-11-30T13:32:18.133Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"33041f173345986e7139d1687b703eb373c1a598","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"e32fbfc5ad788b85fc8ed692981b643db8cf8053","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"99d87e161915fc55423f9b6367f4f911605efbc7","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"b191152faaa57cd5b5b72f20c4a2d2b8dc96f899","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"a287ac76e7b5735bce619c060237095824eb0ae5","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"b4a7180558eb3cd8affa1e240b22171425bdfcb4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_main.c"]}],"references":["https://git.kernel.org/stable/c/33041f173345986e7139d1687b703eb373c1a598","https://git.kernel.org/stable/c/e32fbfc5ad788b85fc8ed692981b643db8cf8053","https://git.kernel.org/stable/c/99d87e161915fc55423f9b6367f4f911605efbc7","https://git.kernel.org/stable/c/b191152faaa57cd5b5b72f20c4a2d2b8dc96f899","https://git.kernel.org/stable/c/a287ac76e7b5735bce619c060237095824eb0ae5","https://git.kernel.org/stable/c/b4a7180558eb3cd8affa1e240b22171425bdfcb4"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139178.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139178","state":"PUBLISHED","datePublished":"2026-11-30T13:32:18.133Z","dateUpdated":"2026-11-30T13:32:18.133Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.918Z"},"containers":{"cna":{"title":"net: lan966x: do not inject uninitialised bytes past skb->len","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not inject uninitialised bytes past skb->len\n\nlan966x_port_ifh_xmit() writes the frame to the injection FIFO one\n32-bit word at a time, and pads frames shorter than 60 bytes with zero\nwords.\n\nBefore this patch, the last word is loaded whole even when skb->len is\nnot a multiple of four, so 1 to 3 bytes past the end of the frame are\nread. For a frame shorter than 60 bytes those bytes are also\ntransmitted, as VLD_BYTES marks the whole last word valid and the\npadding starts at the next word.\n\nWrite the trailing bytes from a zeroed word. The number of words written\nand VLD_BYTES are unchanged.\n\nFound by an AI code review agent. Reproduced on a lan9668 board with\nregister injection, by sending a\n57 byte frame and capturing it on the link partner: byte 57 of the\npadded frame was not zero. With the fix all padding bytes are zero."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"33041f173345986e7139d1687b703eb373c1a598","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"e32fbfc5ad788b85fc8ed692981b643db8cf8053","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"99d87e161915fc55423f9b6367f4f911605efbc7","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"b191152faaa57cd5b5b72f20c4a2d2b8dc96f899","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"a287ac76e7b5735bce619c060237095824eb0ae5","versionType":"git"},{"version":"d28d6d2e37d10d607f931d25c835a0bd94d370e3","status":"affected","lessThan":"b4a7180558eb3cd8affa1e240b22171425bdfcb4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/33041f173345986e7139d1687b703eb373c1a598"},{"url":"https://git.kernel.org/stable/c/e32fbfc5ad788b85fc8ed692981b643db8cf8053"},{"url":"https://git.kernel.org/stable/c/99d87e161915fc55423f9b6367f4f911605efbc7"},{"url":"https://git.kernel.org/stable/c/b191152faaa57cd5b5b72f20c4a2d2b8dc96f899"},{"url":"https://git.kernel.org/stable/c/a287ac76e7b5735bce619c060237095824eb0ae5"},{"url":"https://git.kernel.org/stable/c/b4a7180558eb3cd8affa1e240b22171425bdfcb4"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:18.133Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}