{"id":"CVE-2026-139688","state":"PUBLISHED","title":"wifi: rtw88: sdio: zero the padding added to a TX transfer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: rtw88: sdio: zero the padding added to a TX transfer\n\nrtw_sdio_write_port() rounds the transfer up with sdio_align_size() and\nthen hands that length to sdio_memcpy_toio() while the skb still only\nholds skb->len bytes. The difference, between one and 511 bytes, is read\nfrom beyond the end of the frame and transmitted. Whether it stays\ninside the skb's allocation depends on how much tailroom the skb happens\nto have, so this is at best sending uninitialised memory over the air.\n\nPad the skb up to the transfer size first. __skb_pad() zeroes the added\nbytes, reallocates a cloned skb rather than writing into a buffer a\nclone still shares, and leaves skb->len alone, so nothing else in the\ntransmit path has to change.\n\nIt must not free the skb on failure: rtw_sdio_write_data() frees the skb\nitself and rtw_sdio_process_tx_queue() requeues it, so both callers\nstill own it and would double free.\n\nFound while reworking this path for the RTL8723BS. Measured on RTL8723BS\nhardware, padding the transfer costs about 2% observable over transfer:\nuplink is 19.5 to 19.8 Mbit/s padded against 20.9 to 21.1 Mbit/s unpadded\nin an interleaved A/B, with scans, reconnection and a UDP flood clean in\nboth. The other SDIO parts sharing this path are untested; I have only the\nRTL8723BS.","publishedAt":"2026-11-30T13:37:03.632Z","updatedAt":"2026-11-30T13:37:03.632Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"8146f118b6d3f573d946dca012a2d666e8b3ddae","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"fba1a6719db6452493578728a07bb42b1f64b44e","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"12564b689ddec554135833e2627691571d326007","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"3c4b0c3f8cb95dff1366a215172670623e2e60e4","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"b81ead28aeb1fd9bc3b0de4e20342b6b538ac658","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/sdio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","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/wireless/realtek/rtw88/sdio.c"]}],"references":["https://git.kernel.org/stable/c/8146f118b6d3f573d946dca012a2d666e8b3ddae","https://git.kernel.org/stable/c/fba1a6719db6452493578728a07bb42b1f64b44e","https://git.kernel.org/stable/c/12564b689ddec554135833e2627691571d326007","https://git.kernel.org/stable/c/3c4b0c3f8cb95dff1366a215172670623e2e60e4","https://git.kernel.org/stable/c/b81ead28aeb1fd9bc3b0de4e20342b6b538ac658"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139688.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139688","state":"PUBLISHED","datePublished":"2026-11-30T13:37:03.632Z","dateUpdated":"2026-11-30T13:37:03.632Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.947Z"},"containers":{"cna":{"title":"wifi: rtw88: sdio: zero the padding added to a TX transfer","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: rtw88: sdio: zero the padding added to a TX transfer\n\nrtw_sdio_write_port() rounds the transfer up with sdio_align_size() and\nthen hands that length to sdio_memcpy_toio() while the skb still only\nholds skb->len bytes. The difference, between one and 511 bytes, is read\nfrom beyond the end of the frame and transmitted. Whether it stays\ninside the skb's allocation depends on how much tailroom the skb happens\nto have, so this is at best sending uninitialised memory over the air.\n\nPad the skb up to the transfer size first. __skb_pad() zeroes the added\nbytes, reallocates a cloned skb rather than writing into a buffer a\nclone still shares, and leaves skb->len alone, so nothing else in the\ntransmit path has to change.\n\nIt must not free the skb on failure: rtw_sdio_write_data() frees the skb\nitself and rtw_sdio_process_tx_queue() requeues it, so both callers\nstill own it and would double free.\n\nFound while reworking this path for the RTL8723BS. Measured on RTL8723BS\nhardware, padding the transfer costs about 2% observable over transfer:\nuplink is 19.5 to 19.8 Mbit/s padded against 20.9 to 21.1 Mbit/s unpadded\nin an interleaved A/B, with scans, reconnection and a UDP flood clean in\nboth. The other SDIO parts sharing this path are untested; I have only the\nRTL8723BS."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"8146f118b6d3f573d946dca012a2d666e8b3ddae","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"fba1a6719db6452493578728a07bb42b1f64b44e","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"12564b689ddec554135833e2627691571d326007","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"3c4b0c3f8cb95dff1366a215172670623e2e60e4","versionType":"git"},{"version":"65371a3f14e73979958aea0db1e3bb456a296149","status":"affected","lessThan":"b81ead28aeb1fd9bc3b0de4e20342b6b538ac658","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/sdio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","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/wireless/realtek/rtw88/sdio.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8146f118b6d3f573d946dca012a2d666e8b3ddae"},{"url":"https://git.kernel.org/stable/c/fba1a6719db6452493578728a07bb42b1f64b44e"},{"url":"https://git.kernel.org/stable/c/12564b689ddec554135833e2627691571d326007"},{"url":"https://git.kernel.org/stable/c/3c4b0c3f8cb95dff1366a215172670623e2e60e4"},{"url":"https://git.kernel.org/stable/c/b81ead28aeb1fd9bc3b0de4e20342b6b538ac658"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:37:03.632Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}