staging: rtl8723bs: fix protected RX frame validation in decrypt path (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.33 % · centile 28 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Produits affectés
- Linux · Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix protected RX frame validation in decrypt path The RX software decrypt path mishandles crafted protected frames from a malicious AP in two ways: 1) decryptor() never checks that a protected frame is long enough to hold the 802.11 header plus the per-cipher trailer. All of rtw_wep_decrypt(), rtw_tkip_decrypt() and rtw_aes_decrypt() compute length = hdr.len - hdrlen - iv_len; and act on the result, and recvframe_chkmic() similarly computes datalen = hdr.len - hdrlen - iv_len - icv_len - 8; for TKIP (the 8-byte Michael MIC is not accounted for in icv_len). A frame shorter than hdrlen + iv_len + icv_len (+ 8 for TKIP) underflows these unsigned subtractions, turning into a ~4 GiB iteration count in aes_decipher()/arc4_crypt()/rtw_seccalctkipmic() or a ~4 GiB crc32_le() length, causing out-of-bounds reads/writes of up to ~4 GiB starting from the rx skb. Reject such frames in decryptor() before touching the IV; this covers all three ciphers and the TKIP MIC check, and also keeps the unconditional iv[3] access within the frame. 2) validate_80211w_mgmt() keeps using the frame - two memcpys through the stale rx_data pointer and a pkt_len update - before checking whether decryptor() returned NULL. On decrypt failure (e.g. a unicast protected deauth/disassoc/action frame with a bad MIC, which this path always software-decrypts) the skb has already been freed, so this is a use-after-free read/write, and the caller's error path frees the frame a second time, drifting free_recvframe_cnt. Bail out immediately when decryptor() fails, freeing the temporary mgmt_DATA buffer first. Discovered by Atuin - Automated Vulnerability Discovery Engine.
Références
- https://git.kernel.org/stable/c/d65f8309c25bf52dd2f18ae12670a8f7063a89f2
- https://git.kernel.org/stable/c/4992aed169e5c0db152f4a1a2e7f86d67aef8eee
- https://git.kernel.org/stable/c/f8eb2d12c741af831b7169eb3a65a327438605f1
- https://git.kernel.org/stable/c/8d291314426d5626407ba6e281992f14bee96785
- https://git.kernel.org/stable/c/60e3352593f224306dfab578bf586b301642265f
- https://git.kernel.org/stable/c/33e8f5740319996788395d85a4c100f61593cb75
- https://git.kernel.org/stable/c/b0e79d0ed03ee2e2b9bc0b637fcb87567ff46112
- https://git.kernel.org/stable/c/495cb31c791bdf3f9efef255a9587b05b0526c9d
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-130120
- GCVE · GCVE-0-2026-99454
Avis du CERT-FR
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| Linux · Linux | affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < d65f8309c25bf52dd2f18ae12670a8f7063a89f2 affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 4992aed169e5c0db152f4a1a2e7f86d67aef8eee affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < f8eb2d12c741af831b7169eb3a65a327438605f1 affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 8d291314426d5626407ba6e281992f14bee96785 affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 60e3352593f224306dfab578bf586b301642265f affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 33e8f5740319996788395d85a4c100f61593cb75 affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < b0e79d0ed03ee2e2b9bc0b637fcb87567ff46112 affectée : ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 495cb31c791bdf3f9efef255a9587b05b0526c9d Autres versions : non affectée |
| Linux · Linux | affectée : 4.12 non affectée : ≥ 0 < 4.12 non affectée : ≥ 5.10.275 ≤ 5.10.* non affectée : ≥ 5.15.226 ≤ 5.15.* non affectée : ≥ 6.1.193 ≤ 6.1.* non affectée : ≥ 6.6.163 ≤ 6.6.* non affectée : ≥ 6.12.117 ≤ 6.12.* non affectée : ≥ 6.18.63 ≤ 6.18.* non affectée : ≥ 7.3.2 ≤ 7.3.* non affectée : ≥ 7.4-rc1 ≤ * Autres versions : affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |