{"id":"CVE-2025-68256","state":"PUBLISHED","title":"staging: rtl8723bs: fix out-of-bounds read in rtw_get_ie() parser","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: rtl8723bs: fix out-of-bounds read in rtw_get_ie() parser\n\nThe Information Element (IE) parser rtw_get_ie() trusted the length\nbyte of each IE without validating that the IE body (len bytes after\nthe 2-byte header) fits inside the remaining frame buffer. A malformed\nframe can advertise an IE length larger than the available data, causing\nthe parser to increment its pointer beyond the buffer end. This results\nin out-of-bounds reads or, depending on the pattern, an infinite loop.\n\nFix by validating that (offset + 2 + len) does not exceed the limit\nbefore accepting the IE or advancing to the next element.\n\nThis prevents OOB reads and ensures the parser terminates safely on\nmalformed frames.","publishedAt":"2025-12-16T14:44:58.829Z","updatedAt":"2026-08-05T12:10:31.326Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"9829c6e1b2e4180fd18315252ad6faeab6128076","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"b977eb31802817f4a37da95bf16bfdaa1eeb5fc2","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"30c558447e90935f0de61be181bbcedf75952e00","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"a54e2b2db1b7de2e008b4f62eec35aaefcc663c5","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"df191dd9f4c7249d98ada55634fa8ac19089b8cb","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"c0d93d69e1472ba75b78898979b90a98ba2a2501","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"154828bf9559b9c8421fc2f0d7f7f76b3683aaed","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_ieee80211.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.62","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.12","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18.1","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_ieee80211.c"]}],"references":["https://git.kernel.org/stable/c/9829c6e1b2e4180fd18315252ad6faeab6128076","https://git.kernel.org/stable/c/b977eb31802817f4a37da95bf16bfdaa1eeb5fc2","https://git.kernel.org/stable/c/30c558447e90935f0de61be181bbcedf75952e00","https://git.kernel.org/stable/c/a54e2b2db1b7de2e008b4f62eec35aaefcc663c5","https://git.kernel.org/stable/c/df191dd9f4c7249d98ada55634fa8ac19089b8cb","https://git.kernel.org/stable/c/c0d93d69e1472ba75b78898979b90a98ba2a2501","https://git.kernel.org/stable/c/154828bf9559b9c8421fc2f0d7f7f76b3683aaed"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:56.034Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/68xxx/CVE-2025-68256.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-68256","state":"PUBLISHED","datePublished":"2025-12-16T14:44:58.829Z","dateUpdated":"2026-08-05T12:10:31.326Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-16T13:41:40.267Z"},"containers":{"cna":{"title":"staging: rtl8723bs: fix out-of-bounds read in rtw_get_ie() parser","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: rtl8723bs: fix out-of-bounds read in rtw_get_ie() parser\n\nThe Information Element (IE) parser rtw_get_ie() trusted the length\nbyte of each IE without validating that the IE body (len bytes after\nthe 2-byte header) fits inside the remaining frame buffer. A malformed\nframe can advertise an IE length larger than the available data, causing\nthe parser to increment its pointer beyond the buffer end. This results\nin out-of-bounds reads or, depending on the pattern, an infinite loop.\n\nFix by validating that (offset + 2 + len) does not exceed the limit\nbefore accepting the IE or advancing to the next element.\n\nThis prevents OOB reads and ensures the parser terminates safely on\nmalformed frames."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"9829c6e1b2e4180fd18315252ad6faeab6128076","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"b977eb31802817f4a37da95bf16bfdaa1eeb5fc2","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"30c558447e90935f0de61be181bbcedf75952e00","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"a54e2b2db1b7de2e008b4f62eec35aaefcc663c5","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"df191dd9f4c7249d98ada55634fa8ac19089b8cb","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"c0d93d69e1472ba75b78898979b90a98ba2a2501","versionType":"git"},{"version":"554c0a3abf216c991c5ebddcdb2c08689ecd290b","status":"affected","lessThan":"154828bf9559b9c8421fc2f0d7f7f76b3683aaed","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_ieee80211.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.62","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.12","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18.1","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_ieee80211.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9829c6e1b2e4180fd18315252ad6faeab6128076"},{"url":"https://git.kernel.org/stable/c/b977eb31802817f4a37da95bf16bfdaa1eeb5fc2"},{"url":"https://git.kernel.org/stable/c/30c558447e90935f0de61be181bbcedf75952e00"},{"url":"https://git.kernel.org/stable/c/a54e2b2db1b7de2e008b4f62eec35aaefcc663c5"},{"url":"https://git.kernel.org/stable/c/df191dd9f4c7249d98ada55634fa8ac19089b8cb"},{"url":"https://git.kernel.org/stable/c/c0d93d69e1472ba75b78898979b90a98ba2a2501"},{"url":"https://git.kernel.org/stable/c/154828bf9559b9c8421fc2f0d7f7f76b3683aaed"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - Attacker-controlled 802.11 management frames reach the parser over the air, requiring only proximity to the affected RTL8723BS WiFi device.\nAC:L - The malformed IE length is directly attacker-controlled and deterministically triggers the faulty parsing without a race or condition outside the attacker’s influence.\nPR:N - Beacons and authentication frames are processed before authentication, while the 802.11w path performs the dangerous write before MIC verification.\nUI:N - An active, scanning, connecting, or connected wireless interface automatically processes injected frames without victim action.\nS:U - The vulnerability compromises the host kernel containing the affected driver and does not cross a separate virtualization or hardware security boundary.\nC:H - The unchecked length can drive substantial out-of-bounds reads of kernel memory through downstream callers, including copying out-of-frame data into retransmitted authentication state.\nI:H - A truncated Challenge IE can drive a 255-byte memcpy into a 128-byte MLME buffer, and a malformed MMIE can cause an offset-controlled eight-byte heap overwrite before cryptographic verification.\nA:H - The out-of-bounds reads and writes can cause kernel faults or memory corruption, and malformed frames can be injected repeatedly to crash or destabilize the device."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:10:31.326Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.15.203"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.1.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.6.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.12.62"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.17.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.18.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}