{"id":"CVE-2022-50701","aliases":["CVE-2022-50701"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: mt76: mt7921s: fix slab-out-of-bounds access in sdio host","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7921s: fix slab-out-of-bounds access in sdio host\n\nSDIO may need addtional 511 bytes to align bus operation. If the tailroom\nof this skb is not big enough, we would access invalid memory region.\nFor low level operation, increase skb size to keep valid memory access in\nSDIO host.\n\nError message:\n[69.951] BUG: KASAN: slab-out-of-bounds in sg_copy_buffer+0xe9/0x1a0\n[69.951] Read of size 64 at addr ffff88811c9cf000 by task kworker/u16:7/451\n[69.951] CPU: 4 PID: 451 Comm: kworker/u16:7 Tainted: G W  OE  6.1.0-rc5 #1\n[69.951] Workqueue: kvub300c vub300_cmndwork_thread [vub300]\n[69.951] Call Trace:\n[69.951]  <TASK>\n[69.952]  dump_stack_lvl+0x49/0x63\n[69.952]  print_report+0x171/0x4a8\n[69.952]  kasan_report+0xb4/0x130\n[69.952]  kasan_check_range+0x149/0x1e0\n[69.952]  memcpy+0x24/0x70\n[69.952]  sg_copy_buffer+0xe9/0x1a0\n[69.952]  sg_copy_to_buffer+0x12/0x20\n[69.952]  __command_write_data.isra.0+0x23c/0xbf0 [vub300]\n[69.952]  vub300_cmndwork_thread+0x17f3/0x58b0 [vub300]\n[69.952]  process_one_work+0x7ee/0x1320\n[69.952]  worker_thread+0x53c/0x1240\n[69.952]  kthread+0x2b8/0x370\n[69.952]  ret_from_fork+0x1f/0x30\n[69.952]  </TASK>\n\n[69.952] Allocated by task 854:\n[69.952]  kasan_save_stack+0x26/0x50\n[69.952]  kasan_set_track+0x25/0x30\n[69.952]  kasan_save_alloc_info+0x1b/0x30\n[69.952]  __kasan_kmalloc+0x87/0xa0\n[69.952]  __kmalloc_node_track_caller+0x63/0x150\n[69.952]  kmalloc_reserve+0x31/0xd0\n[69.952]  __alloc_skb+0xfc/0x2b0\n[69.952]  __mt76_mcu_msg_alloc+0xbf/0x230 [mt76]\n[69.952]  mt76_mcu_send_and_get_msg+0xab/0x110 [mt76]\n[69.952]  __mt76_mcu_send_firmware.cold+0x94/0x15d [mt76]\n[69.952]  mt76_connac_mcu_send_ram_firmware+0x415/0x54d [mt76_connac_lib]\n[69.952]  mt76_connac2_load_ram.cold+0x118/0x4bc [mt76_connac_lib]\n[69.952]  mt7921_run_firmware.cold+0x2e9/0x405 [mt7921_common]\n[69.952]  mt7921s_mcu_init+0x45/0x80 [mt7921s]\n[69.953]  mt7921_init_work+0xe1/0x2a0 [mt7921_common]\n[69.953]  process_one_work+0x7ee/0x1320\n[69.953]  worker_thread+0x53c/0x1240\n[69.953]  kthread+0x2b8/0x370\n[69.953]  ret_from_fork+0x1f/0x30\n[69.953] The buggy address belongs to the object at ffff88811c9ce800\n             which belongs to the cache kmalloc-2k of size 2048\n[69.953] The buggy address is located 0 bytes to the right of\n             2048-byte region [ffff88811c9ce800, ffff88811c9cf000)\n\n[69.953] Memory state around the buggy address:\n[69.953]  ffff88811c9cef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n[69.953]  ffff88811c9cef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n[69.953] >ffff88811c9cf000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc\n[69.953]                    ^\n[69.953]  ffff88811c9cf080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc\n[69.953]  ffff88811c9cf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7921s: fix slab-out-of-bounds access in sdio host\n\nSDIO may need addtional 511 bytes to align bus operation. If the tailroom\nof this skb is not big enough, we would access invalid memory region.\nFor low level operation, increase skb size to keep valid memory access in\nSDIO host.\n\nError message:\n[69.951] BUG: KASAN: slab-out-of-bounds in sg_copy_buffer+0xe9/0x1a0\n[69.951] Read of size 64 at addr ffff88811c9cf000 by task kworker/u16:7/451\n[69.951] CPU: 4 PID: 451 Comm: kworker/u16:7 Tainted: G W  OE  6.1.0-rc5 #1\n[69.951] Workqueue: kvub300c vub300_cmndwork_thread [vub300]\n[69.951] Call Trace:\n[69.951]  <TASK>\n[69.952]  dump_stack_lvl+0x49/0x63\n[69.952]  print_report+0x171/0x4a8\n[69.952]  kasan_report+0xb4/0x130\n[69.952]  kasan_check_range+0x149/0x1e0\n[69.952]  memcpy+0x24/0x70\n[69.952]  sg_copy_buffer+0xe9/0x1a0\n[69.952]  sg_copy_to_buffer+0x12/0x20\n[69.952]  __command_write_data.isra.0+0x23c/0xbf0 [vub300]\n[69.952]  vub300_cmndwork_thread+0x17f3/0x58b0 [vub300]\n[69.952]  process_one_work+0x7ee/0x1320\n[69.952]  worker_thread+0x53c/0x1240\n[69.952]  kthread+0x2b8/0x370\n[69.952]  ret_from_fork+0x1f/0x30\n[69.952]  </TASK>\n\n[69.952] Allocated by task 854:\n[69.952]  kasan_save_stack+0x26/0x50\n[69.952]  kasan_set_track+0x25/0x30\n[69.952]  kasan_save_alloc_info+0x1b/0x30\n[69.952]  __kasan_kmalloc+0x87/0xa0\n[69.952]  __kmalloc_node_track_caller+0x63/0x150\n[69.952]  kmalloc_reserve+0x31/0xd0\n[69.952]  __alloc_skb+0xfc/0x2b0\n[69.952]  __mt76_mcu_msg_alloc+0xbf/0x230 [mt76]\n[69.952]  mt76_mcu_send_and_get_msg+0xab/0x110 [mt76]\n[69.952]  __mt76_mcu_send_firmware.cold+0x94/0x15d [mt76]\n[69.952]  mt76_connac_mcu_send_ram_firmware+0x415/0x54d [mt76_connac_lib]\n[69.952]  mt76_connac2_load_ram.cold+0x118/0x4bc [mt76_connac_lib]\n[69.952]  mt7921_run_firmware.cold+0x2e9/0x405 [mt7921_common]\n[69.952]  mt7921s_mcu_init+0x45/0x80 [mt7921s]\n[69.953]  mt7921_init_work+0xe1/0x2a0 [mt7921_common]\n[69.953]  process_one_work+0x7ee/0x1320\n[69.953]  worker_thread+0x53c/0x1240\n[69.953]  kthread+0x2b8/0x370\n[69.953]  ret_from_fork+0x1f/0x30\n[69.953] The buggy address belongs to the object at ffff88811c9ce800\n             which belongs to the cache kmalloc-2k of size 2048\n[69.953] The buggy address is located 0 bytes to the right of\n             2048-byte region [ffff88811c9ce800, ffff88811c9cf000)\n\n[69.953] Memory state around the buggy address:\n[69.953]  ffff88811c9cef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n[69.953]  ffff88811c9cef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n[69.953] >ffff88811c9cf000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc\n[69.953]                    ^\n[69.953]  ffff88811c9cf080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc\n[69.953]  ffff88811c9cf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\\n\\nwifi: mt76: mt7921s: corregir acceso fuera de los límites del slab en el host SDIO\\n\\nSDIO puede necesitar 511?bytes adicionales para alinear la operación del bus. Si el espacio libre al final de este skb no es suficientemente grande, se accedería a una región de memoria no válida. Para la operación de bajo nivel, se incrementa el tamaño del skb para mantener un acceso a memoria válido en el host SDIO.\\n\\nMensaje de error:\\n[69.951] BUG: KASAN: slab-out-of-bounds in sg_copy_buffer+0xe9/0x1a0\\n[69.951] Lectura de 64?bytes en la dirección ffff88811c9cf000 por la tarea kworker/u16:7/451\\n[69.951] CPU: 4 PID: 451 Comm: kworker/u16:7 Tainted: G W  OE  6.1.0-rc5 #1\\n[69.951] Workqueue: kvub300c vub300_cmndwork_thread [vub300]\\n[69.951] Traza de llamada:\\n[69.951]  [TASK]\\n[69.952]  dump_stack_lvl+0x49/0x63\\n[69.952]  print_report+0x171/0x4a8\\n[69.952]  kasan_report+0xb4/0x130\\n[69.952]  kasan_check_range+0x149/0x1e0\\n[69.952]  memcpy+0x24/0x70\\n[69.952]  sg_copy_buffer+0xe9/0x1a0\\n[69.952]  sg_copy_to_buffer+0x12/0x20\\n[69.952]  __command_write_data.isra.0+0x23c/0xbf0 [vub300]\\n[69.952]  vub300_cmndwork_thread+0x17f3/0x58b0 [vub300]\\n[69.952]  process_one_work+0x7ee/0x1320\\n[69.952]  worker_thread+0x53c/0x1240\\n[69.952]  kthread+0x2b8/0x370\\n[69.952]  ret_from_fork+0x1f/0x30\\n[69.952]  [/TASK]\\n\\n[69.952] Asignado por la tarea 854:\\n[69.952]  kasan_save_stack+0x26/0x50\\n[69.952]  kasan_set_track+0x25/0x30\\n[69.952]  kasan_save_alloc_info+0x1b/0x30\\n[69.952]  __kasan_kmalloc+0x87/0xa0\\n[69.952]  __kmalloc_node_track_caller+0x63/0x150\\n[69.952]  kmalloc_reserve+0x31/0xd0\\n[69.952]  __alloc_skb+0xfc/0x2b0\\n[69.952]  __mt76_mcu_msg_alloc+0xbf/0x230 [mt76]\\n[69.952]  mt76_mcu_send_and_get_msg+0xab/0x110 [mt76]\\n[69.952]  __mt76_mcu_send_firmware.cold+0x94/0x15d [mt76]\\n[69.952]  mt76_connac_mcu_send_ram_firmware+0x415/0x54d [mt76_connac_lib]\\n[69.952]  mt76_connac2_load_ram.cold+0x118/0x4bc [mt76_connac_lib]\\n[69.952]  mt7921_run_firmware.cold+0x2e9/0x405 [mt7921_common]\\n[69.952]  mt7921s_mcu_init+0x45/0x80 [mt7921s]\\n[69.953]  mt7921_init_work+0xe1/0x2a0 [mt7921_common]\\n[69.953]  process_one_work+0x7ee/0x1320\\n[69.953]  worker_thread+0x53c/0x1240\\n[69.953]  kthread+0x2b8/0x370\\n[69.953]  ret_from_fork+0x1f/0x30\\n[69.953] La dirección defectuosa pertenece al objeto en ffff88811c9ce800, que forma parte del caché kmalloc-2k de tamaño 2048\\n[69.953] La dirección defectuosa se encuentra a 0?bytes a la derecha de la región de 2048?bytes [ffff88811c9ce800, ffff88811c9cf000)\\n\\n[69.953] Estado de la memoria alrededor de la dirección defectuosa:\\n[69.953]  ffff88811c9cef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\\n[69.953]  ffff88811c9cef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\\n[69.953] >ffff88811c9cf000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc\\n[69.953]                    ^\\n[69.953]  ffff88811c9cf080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc\\n[69.953]  ffff88811c9cf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc","source":"nvd"}],"published":"2025-12-24T10:55:17.090Z","modified":"2026-11-10T12:10:00.177Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"764dee47e2c1ed828c8a51cbf58f89b5e3ded11b","fixed":"8b5174a7f25d03df0ffa171ff86de383a89e8e89","status":"affected"},{"type":"git","introduced":"764dee47e2c1ed828c8a51cbf58f89b5e3ded11b","fixed":"0b358e36433d2c46a65488a146bf8b4623fc5bbb","status":"affected"},{"type":"git","introduced":"764dee47e2c1ed828c8a51cbf58f89b5e3ded11b","fixed":"aec4cf2ea0797e28f18f8dbe01943a56d987fe56","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.1.16","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.3","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8b5174a7f25d03df0ffa171ff86de383a89e8e89","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b358e36433d2c46a65488a146bf8b4623fc5bbb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aec4cf2ea0797e28f18f8dbe01943a56d987fe56","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-15T21:32:12.638Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50701","url":"https://www.cve.org/CVERecord?id=CVE-2022-50701","licence":"CVE Terms of Use","modified":"2026-10-15T21:41:23.201Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50701","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50701","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.325Z","epss":{"score":0.00159,"percentile":0.05358,"date":"2026-12-01T12:00:22.000Z"}}