{"id":"CVE-2025-71234","aliases":["CVE-2025-71234"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: rtl8xxxu: fix slab-out-of-bounds in rtl8xxxu_sta_add","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: rtl8xxxu: fix slab-out-of-bounds in rtl8xxxu_sta_add\n\nThe driver does not set hw->sta_data_size, which causes mac80211 to\nallocate insufficient space for driver private station data in\n__sta_info_alloc(). When rtl8xxxu_sta_add() accesses members of\nstruct rtl8xxxu_sta_info through sta->drv_priv, this results in a\nslab-out-of-bounds write.\n\nKASAN report on RISC-V (VisionFive 2) with RTL8192EU adapter:\n\n  BUG: KASAN: slab-out-of-bounds in rtl8xxxu_sta_add+0x31c/0x346\n  Write of size 8 at addr ffffffd6d3e9ae88 by task kworker/u16:0/12\n\nSet hw->sta_data_size to sizeof(struct rtl8xxxu_sta_info) during\nprobe, similar to how hw->vif_data_size is configured. This ensures\nmac80211 allocates sufficient space for the driver's per-station\nprivate data.\n\nTested on StarFive VisionFive 2 v1.2A board.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: rtl8xxxu: fix slab-out-of-bounds in rtl8xxxu_sta_add\n\nThe driver does not set hw->sta_data_size, which causes mac80211 to\nallocate insufficient space for driver private station data in\n__sta_info_alloc(). When rtl8xxxu_sta_add() accesses members of\nstruct rtl8xxxu_sta_info through sta->drv_priv, this results in a\nslab-out-of-bounds write.\n\nKASAN report on RISC-V (VisionFive 2) with RTL8192EU adapter:\n\n  BUG: KASAN: slab-out-of-bounds in rtl8xxxu_sta_add+0x31c/0x346\n  Write of size 8 at addr ffffffd6d3e9ae88 by task kworker/u16:0/12\n\nSet hw->sta_data_size to sizeof(struct rtl8xxxu_sta_info) during\nprobe, similar to how hw->vif_data_size is configured. This ensures\nmac80211 allocates sufficient space for the driver's per-station\nprivate data.\n\nTested on StarFive VisionFive 2 v1.2A board.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nwifi: rtl8xxxu: corrección de slab-out-of-bounds en rtl8xxxu_sta_add\n\nEl controlador no establece hw-&gt;sta_data_size, lo que provoca que mac80211 asigne espacio insuficiente para los datos privados de estación del controlador en __sta_info_alloc(). Cuando rtl8xxxu_sta_add() accede a miembros de struct rtl8xxxu_sta_info a través de sta-&gt;drv_priv, esto resulta en una escritura slab-out-of-bounds.\n\nInforme KASAN en RISC-V (VisionFive 2) con adaptador RTL8192EU:\n\n  BUG: KASAN: slab-out-of-bounds en rtl8xxxu_sta_add+0x31c/0x346\n  Escritura de tamaño 8 en la dirección ffffffd6d3e9ae88 por la tarea kworker/u16:0/12\n\nEstablecer hw-&gt;sta_data_size a sizeof(struct rtl8xxxu_sta_info) durante probe, de forma similar a cómo se configura hw-&gt;vif_data_size. Esto asegura que mac80211 asigne espacio suficiente para los datos privados por estación del controlador.\n\nProbado en placa StarFive VisionFive 2 v1.2A.","source":"nvd"}],"published":"2026-02-18T14:53:18.893Z","modified":"2026-10-19T19:17:17.357Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"eef55f1545c92c7181d5083453dee1296298ad3e","fixed":"5d810ba377eddee95d30766d360a14efbb3d1872","status":"affected"},{"type":"git","introduced":"eef55f1545c92c7181d5083453dee1296298ad3e","fixed":"116f7bd8160c6b37d1c6939385abf90f6f6ed2f5","status":"affected"},{"type":"git","introduced":"eef55f1545c92c7181d5083453dee1296298ad3e","fixed":"9a0f3fa6ecd0c9c32dbc367a57482bbf7c7d25bf","status":"affected"},{"type":"git","introduced":"eef55f1545c92c7181d5083453dee1296298ad3e","fixed":"86c946bcc00f6390ef65e9614ae60a9377e454f8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.72","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.11","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.1","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.9","fixed":"6.12.72"},{"status":"affected","introduced":"6.13","fixed":"6.18.11"},{"status":"affected","introduced":"6.19","fixed":"6.19.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5d810ba377eddee95d30766d360a14efbb3d1872","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/116f7bd8160c6b37d1c6939385abf90f6f6ed2f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a0f3fa6ecd0c9c32dbc367a57482bbf7c7d25bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86c946bcc00f6390ef65e9614ae60a9377e454f8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:06:09.565Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71234","url":"https://www.cve.org/CVERecord?id=CVE-2025-71234","licence":"CVE Terms of Use","modified":"2026-10-19T18:25:24.435Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71234","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71234","licence":"Public domain","modified":"2026-10-19T19:17:17.357Z"}],"updatedAt":"2026-11-25T22:59:11.277Z","epss":{"score":0.00232,"percentile":0.15099,"date":"2026-12-01T12:00:22.000Z"}}