CVE-2023-53847
kernel: usb-storage: alauda: Fix uninit-value in alauda_check_media()
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
usb-storage: alauda: Fix uninit-value in alauda_check_media()
Syzbot got KMSAN to complain about access to an uninitialized value in
the alauda subdriver of usb-storage:
BUG: KMSAN: uninit-value in alauda_transport+0x462/0x57f0
drivers/usb/storage/alauda.c:1137
CPU: 0 PID: 12279 Comm: usb-storage Not tainted 5.3.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x191/0x1f0 lib/dump_stack.c:113
kmsan_report+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108
__msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250
alauda_check_media+0x344/0x3310 drivers/usb/storage/alauda.c:460
The problem is that alauda_check_media() doesn't verify that its USB
transfer succeeded before trying to use the received data. What
should happen if the transfer fails isn't entirely clear, but a
reasonably conservative approach is to pretend that no media is
present.
A similar problem exists in a usb_stor_dbg() call in
alauda_get_media_status(). In this case, when an error occurs the
call is redundant, because usb_stor_ctrl_transfer() already will print
a debugging message.
Finally, unrelated to the uninitialized memory access, is the fact
that alauda_check_media() performs DMA to a buffer on the stack.
Fortunately usb-storage provides a general purpose DMA-able buffer for
uses like this. We'll use it instead.
Source: OX vulnerability database
Severity
5.5 · LOW
CVSS 3.1 base score, scored by redhat.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 111 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | bpftool +9 | 5.10.46-2.ph4 |
Red Hat 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | bpftool +25 | affected | — |
| 8 | kernel-rt +14 | affected | — |
| 8 | bpftool +22 | 0:4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| 9 | kernel-rt +20 | affected | — |
| 9 | kernel +60 | 0:5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| 9 | bpftool | 0:7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
SUSE Linux Enterprise 5 releases · 9 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | kgraft-patch-4-12-14-122-290-default | 1-8.7.1 | SUSE-SU-2026:0316-1 |
| 12.5 | cluster-md-kmp-default +13 | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| 15.4 | kernel-livepatch-5-14-21-150400-24-194-default | 1-150400.9.7.1 | SUSE-SU-2026:0617-1 |
| 15.4 | cluster-md-kmp-default +17 | 5.14.21-150400.24.194.1 | SUSE-SU-2026:0617-1 |
| 15.4 | kernel-default-base | 5.14.21-150400.24.194.1.150400.24.98.3 | SUSE-SU-2026:0617-1 |
| 15.5 | kernel-livepatch-5-14-21-150500-55-133-default | 1-150500.11.3.1 | SUSE-SU-2026:0317-1 |
10 more rows
SUSE Linux Enterprise Micro 5 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | kernel-rt +1 | 5.14.21-150400.15.142.1 | SUSE-SU-2026:0411-1 |
| 5.3 | kernel-default | 5.14.21-150400.24.194.1 | SUSE-SU-2026:0617-1 |
| 5.3 | kernel-default-base | 5.14.21-150400.24.194.1.150400.24.98.3 | SUSE-SU-2026:0617-1 |
| 5.4 | kernel-rt +1 | 5.14.21-150400.15.142.1 | SUSE-SU-2026:0411-1 |
| 5.4 | kernel-default | 5.14.21-150400.24.194.1 | SUSE-SU-2026:0617-1 |
| 5.4 | kernel-default-base | 5.14.21-150400.24.194.1.150400.24.98.3 | SUSE-SU-2026:0617-1 |
9 more rows
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | kernel-livepatch-6-1-49-69-116 | 1.0-0.amzn2023 |
| 2023 | bpftool +17 | 6.1.49-69.116.amzn2023 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | 5.10.191-1 |
| 12 | linux | 6.1.52-1 |
| 13 | linux | 6.4.11-1 |
| 14 | linux | 6.4.11-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.4.11-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-linux | 5.10.191-1 |
| 12 | rootio-linux | 6.1.52-1 |
| 13 | rootio-linux | 6.4.11-1 |
root.io ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | rootio-linux | 5.15.0-91.101 |
ubuntu 4 releases · 34 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | linux +5 | affected |
| 18.04-ESM | linux-ibm-5-4 | 5.4.0-1063.68~18.04.1 |
| 18.04-ESM | linux-raspi-5-4 | 5.4.0-1100.112~18.04.1 |
| 18.04-ESM | linux-oracle-5-4 | 5.4.0-1115.124~18.04.1 |
| 18.04-ESM | linux-aws-5-4 | 5.4.0-1116.126~18.04.1 |
| 18.04-ESM | linux-gcp-5-4 | 5.4.0-1120.129~18.04.1 |
56 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-53847
- git.kernel.org https://git.kernel.org/linus/a6ff6e7a9dd69364547751db0f626a10a6d628d2 (6.5-rc6)
- git.kernel.org https://git.kernel.org/stable/c/044f4446e06bb03c52216697b14867ebc555ad3b
- git.kernel.org https://git.kernel.org/stable/c/0d2d5282d39aed6f27dfe1ed60a5f3934ebd21cd
- git.kernel.org https://git.kernel.org/stable/c/153c3e85873cc3e2f387169783c3a227bad9a95a
- git.kernel.org https://git.kernel.org/stable/c/373e0ab8c4c516561493f1acf367c7ee7dc053c2
- git.kernel.org https://git.kernel.org/stable/c/49d380bcd6cba987c6085fae6464c9c087e8d9a0
- git.kernel.org https://git.kernel.org/stable/c/7a11d1e2625bdb2346f6586773b20b20977278ac
- git.kernel.org https://git.kernel.org/stable/c/a6ff6e7a9dd69364547751db0f626a10a6d628d2
- git.kernel.org https://git.kernel.org/stable/c/fe7c3a445d22783d27fe8bd0521a8aab1eb9da65
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.