{"id":"CVE-2026-139209","state":"PUBLISHED","title":"net: sparx5/lan969x: do not read past skb->len when injecting a frame","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5/lan969x: do not read past skb->len when injecting a frame\n\nsparx5_inject() writes the frame to the injection FIFO one 32-bit word\nat a time, and pads frames shorter than 60 bytes with zero words.\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, and reproduced on lan969x and sparx5\nwith register injection: bytes 57 to 59 of a 57 byte frame were not\nzero. With the fix they are zero, and traffic still passes on both\nchips.","publishedAt":"2026-11-30T13:32:35.354Z","updatedAt":"2026-11-30T13:32:35.354Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"8f935b1e2858800e633b5fe64c6b53abb2360ad1","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"2cfbaa421c28c6a0327fab611bd54698a3275c0e","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"047105875066bf43fec035c072d39f6e6269a811","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"98325fade62296c0edf47cad68b72f6daa097221","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"108a86eaaaf03fe26df62c4234bccc1d3881e34c","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"1d5328be401baa9f1c98178ec1120bbb46b765fa","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"9642ce6cb51ebd596d0a02074ba9b2a387e974b0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/sparx5/sparx5_packet.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","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/sparx5/sparx5_packet.c"]}],"references":["https://git.kernel.org/stable/c/8f935b1e2858800e633b5fe64c6b53abb2360ad1","https://git.kernel.org/stable/c/2cfbaa421c28c6a0327fab611bd54698a3275c0e","https://git.kernel.org/stable/c/047105875066bf43fec035c072d39f6e6269a811","https://git.kernel.org/stable/c/98325fade62296c0edf47cad68b72f6daa097221","https://git.kernel.org/stable/c/108a86eaaaf03fe26df62c4234bccc1d3881e34c","https://git.kernel.org/stable/c/1d5328be401baa9f1c98178ec1120bbb46b765fa","https://git.kernel.org/stable/c/9642ce6cb51ebd596d0a02074ba9b2a387e974b0"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139209.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139209","state":"PUBLISHED","datePublished":"2026-11-30T13:32:35.354Z","dateUpdated":"2026-11-30T13:32:35.354Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.920Z"},"containers":{"cna":{"title":"net: sparx5/lan969x: do not read past skb->len when injecting a frame","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5/lan969x: do not read past skb->len when injecting a frame\n\nsparx5_inject() writes the frame to the injection FIFO one 32-bit word\nat a time, and pads frames shorter than 60 bytes with zero words.\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, and reproduced on lan969x and sparx5\nwith register injection: bytes 57 to 59 of a 57 byte frame were not\nzero. With the fix they are zero, and traffic still passes on both\nchips."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"8f935b1e2858800e633b5fe64c6b53abb2360ad1","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"2cfbaa421c28c6a0327fab611bd54698a3275c0e","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"047105875066bf43fec035c072d39f6e6269a811","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"98325fade62296c0edf47cad68b72f6daa097221","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"108a86eaaaf03fe26df62c4234bccc1d3881e34c","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"1d5328be401baa9f1c98178ec1120bbb46b765fa","versionType":"git"},{"version":"f3cad2611a77f0229dc16aa7bd2ef63e35ea9fb6","status":"affected","lessThan":"9642ce6cb51ebd596d0a02074ba9b2a387e974b0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/sparx5/sparx5_packet.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","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/sparx5/sparx5_packet.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8f935b1e2858800e633b5fe64c6b53abb2360ad1"},{"url":"https://git.kernel.org/stable/c/2cfbaa421c28c6a0327fab611bd54698a3275c0e"},{"url":"https://git.kernel.org/stable/c/047105875066bf43fec035c072d39f6e6269a811"},{"url":"https://git.kernel.org/stable/c/98325fade62296c0edf47cad68b72f6daa097221"},{"url":"https://git.kernel.org/stable/c/108a86eaaaf03fe26df62c4234bccc1d3881e34c"},{"url":"https://git.kernel.org/stable/c/1d5328be401baa9f1c98178ec1120bbb46b765fa"},{"url":"https://git.kernel.org/stable/c/9642ce6cb51ebd596d0a02074ba9b2a387e974b0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:35.354Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}