Description
In the Linux kernel, the following vulnerability has been resolved: usb-storage: alauda: check the return value of alauda_read_map() alauda_ensure_map_for_zone() ignores the value alauda_read_map() returns. On failure lba_to_pba[zone] and pba_to_lba[zone] are left NULL, and both callers dereference them immediately: pba = MEDIA_INFO(us).lba_to_pba[zone][lba_offset]; alauda_read_map() returns USB_STOR_TRANSPORT_ERROR when either kcalloc() fails or an alauda_get_redu_data() transfer fails, so one failed bulk transfer is enough to reach the NULL dereference. Return that value from alauda_ensure_map_for_zone() and check it in alauda_read_data() and alauda_write_lba().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e80b0fade09ef1ee67b0898d480d4c588f124d5f to < a643ef9014acc597b843f3011936eba2c187386aaffectede80b0fade09ef1ee67b0898d480d4c588f124d5f to < c585734f503e4598b4431fe8839299ceb2161abfaffectede80b0fade09ef1ee67b0898d480d4c588f124d5f to < 19df4993a515f6482b5b917ad2612f5a901ac756affectede80b0fade09ef1ee67b0898d480d4c588f124d5f to < da375f848ee8f40f3f0b9648e126139eaabebd2caffectede80b0fade09ef1ee67b0898d480d4c588f124d5f to < 964e4009031e3bea6498122543fe3c007c1ff758affectede80b0fade09ef1ee67b0898d480d4c588f124d5f to < 65c6ed7ecedfe97cf38f30e66b82c29e0f1efc58affectede80b0fade09ef1ee67b0898d480d4c588f124d5f to < 777cb1f8d2876ff6ee5baff19afc119699563b57affectede80b0fade09ef1ee67b0898d480d4c588f124d5f to < eb882419790c6710646904c6b25132189152cf33affected
Linux Linux
Default version status: affected
2.6.16affected0 to < 2.6.16unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/a643ef9014acc597b843f3011936eba2c187386a ↗
- https://git.kernel.org/stable/c/c585734f503e4598b4431fe8839299ceb2161abf ↗
- https://git.kernel.org/stable/c/19df4993a515f6482b5b917ad2612f5a901ac756 ↗
- https://git.kernel.org/stable/c/da375f848ee8f40f3f0b9648e126139eaabebd2c ↗
- https://git.kernel.org/stable/c/964e4009031e3bea6498122543fe3c007c1ff758 ↗
- https://git.kernel.org/stable/c/65c6ed7ecedfe97cf38f30e66b82c29e0f1efc58 ↗
- https://git.kernel.org/stable/c/777cb1f8d2876ff6ee5baff19afc119699563b57 ↗
- https://git.kernel.org/stable/c/eb882419790c6710646904c6b25132189152cf33 ↗