{"id":"CVE-2026-139208","state":"PUBLISHED","title":"net: sparx5: fix tx DCB index drift in fdma xmit","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5: fix tx DCB index drift in fdma xmit\n\nsparx5_fdma_xmit() advances dcb_index before checking that the FDMA is\ndone with the DCB, and does not undo the advance when the check fails.\nBefore commit f4aa7e361ae2 (\"net: sparx5: use FDMA library for adding\nDCB's in the tx path\") the next DCB was always the one after last_dcb.\nSince then dcb_index drifts one DCB further away from last_dcb on every\nfailed transmit.\n\nWhile the ring is full, this drops frames even though completed DCBs\nsit behind dcb_index. After a run of failures, dcb_index can also land\non last_dcb itself. Re-adding last_dcb loses the frame, because the\nFDMA has already passed the tail of the chain, and that DCB is never\ncompleted again.\n\nFix this by making dcb_index the next DCB to use, and advancing it only\nafter the DCB has been added, as the rx path does. dcb_index and\nlast_dcb now only move together, so dcb_index always points at the DCB\nafter last_dcb.\n\nThe issue was found by an AI code review agent. It was reproduced on a\nsparx5 PCB135 board with a modified kernel that forces 63 consecutive\ntransmit failures. Afterwards, about 1 in 64 frames is lost for good.\nWith the fix, the same test loses no frames.","publishedAt":"2026-11-30T13:32:34.781Z","updatedAt":"2026-11-30T13:32:34.781Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"ee64bc5d5c224b32d6c27a539cd70dc954ed0274","versionType":"git"},{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"3dda94929d30ac206172c4e830b304091260061f","versionType":"git"},{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"b92e3f70dcae641828e68c339b7b8507dad53d03","versionType":"git"},{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"1df26063ab9ba64f5fb11049fa4be686b7fc309e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","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_fdma.c"]}],"references":["https://git.kernel.org/stable/c/ee64bc5d5c224b32d6c27a539cd70dc954ed0274","https://git.kernel.org/stable/c/3dda94929d30ac206172c4e830b304091260061f","https://git.kernel.org/stable/c/b92e3f70dcae641828e68c339b7b8507dad53d03","https://git.kernel.org/stable/c/1df26063ab9ba64f5fb11049fa4be686b7fc309e"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139208.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139208","state":"PUBLISHED","datePublished":"2026-11-30T13:32:34.781Z","dateUpdated":"2026-11-30T13:32:34.781Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.920Z"},"containers":{"cna":{"title":"net: sparx5: fix tx DCB index drift in fdma xmit","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5: fix tx DCB index drift in fdma xmit\n\nsparx5_fdma_xmit() advances dcb_index before checking that the FDMA is\ndone with the DCB, and does not undo the advance when the check fails.\nBefore commit f4aa7e361ae2 (\"net: sparx5: use FDMA library for adding\nDCB's in the tx path\") the next DCB was always the one after last_dcb.\nSince then dcb_index drifts one DCB further away from last_dcb on every\nfailed transmit.\n\nWhile the ring is full, this drops frames even though completed DCBs\nsit behind dcb_index. After a run of failures, dcb_index can also land\non last_dcb itself. Re-adding last_dcb loses the frame, because the\nFDMA has already passed the tail of the chain, and that DCB is never\ncompleted again.\n\nFix this by making dcb_index the next DCB to use, and advancing it only\nafter the DCB has been added, as the rx path does. dcb_index and\nlast_dcb now only move together, so dcb_index always points at the DCB\nafter last_dcb.\n\nThe issue was found by an AI code review agent. It was reproduced on a\nsparx5 PCB135 board with a modified kernel that forces 63 consecutive\ntransmit failures. Afterwards, about 1 in 64 frames is lost for good.\nWith the fix, the same test loses no frames."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"ee64bc5d5c224b32d6c27a539cd70dc954ed0274","versionType":"git"},{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"3dda94929d30ac206172c4e830b304091260061f","versionType":"git"},{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"b92e3f70dcae641828e68c339b7b8507dad53d03","versionType":"git"},{"version":"f4aa7e361ae2265ccdf2300f0a2ec531caed3f40","status":"affected","lessThan":"1df26063ab9ba64f5fb11049fa4be686b7fc309e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","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_fdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ee64bc5d5c224b32d6c27a539cd70dc954ed0274"},{"url":"https://git.kernel.org/stable/c/3dda94929d30ac206172c4e830b304091260061f"},{"url":"https://git.kernel.org/stable/c/b92e3f70dcae641828e68c339b7b8507dad53d03"},{"url":"https://git.kernel.org/stable/c/1df26063ab9ba64f5fb11049fa4be686b7fc309e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:34.781Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}