# CVE-2024-50098: scsi: ufs: core: Set SDEV\_OFFLINE when UFS is shut down

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **Published:** 2024-11-05T17:07:36.658Z
- **Modified:** 2026-06-17T08:03:34.790Z

## Who should check

- Anyone running Linux \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7de759fceacff5660abf9590d11114215a9d5f3c; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7bd9af254275fad7071d85f04616560deb598d7d; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7774d23622416dbbbdb21bf342b3f0d92cf1dc0f; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 19a198b67767d952c8f3d0cf24eb3100522a8223
- Anyone running Linux 5.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: ufs: core: Set SDEV\_OFFLINE when UFS is shut down

There is a history of deadlock if reboot is performed at the beginning
of booting. SDEV\_QUIESCE was set for all LU's scsi\_devices by UFS
shutdown, and at that time the audio driver was waiting on
blk\_mq\_submit\_bio() holding a mutex\_lock while reading the fw binary.
After that, a deadlock issue occurred while audio driver shutdown was
waiting for mutex\_unlock of blk\_mq\_submit\_bio(). To solve this, set
SDEV\_OFFLINE for all LUs except WLUN, so that any I/O that comes down
after a UFS shutdown will return an error.

\[   31.907781\]I\[0:      swapper/0:    0\]        1        130705007       1651079834      11289729804                0 D(   2) 3 ffffff882e208000 \*             init \[device\_shutdown\]
\[   31.907793\]I\[0:      swapper/0:    0\] Mutex: 0xffffff8849a2b8b0: owner\[0xffffff882e28cb00 kworker/6:0 :49\]
\[   31.907806\]I\[0:      swapper/0:    0\] Call trace:
\[   31.907810\]I\[0:      swapper/0:    0\]  \_\_switch\_to+0x174/0x338
\[   31.907819\]I\[0:      swapper/0:    0\]  \_\_schedule+0x5ec/0x9cc
\[   31.907826\]I\[0:      swapper/0:    0\]  schedule+0x7c/0xe8
\[   31.907834\]I\[0:      swapper/0:    0\]  schedule\_preempt\_disabled+0x24/0x40
\[   31.907842\]I\[0:      swapper/0:    0\]  \_\_mutex\_lock+0x408/0xdac
\[   31.907849\]I\[0:      swapper/0:    0\]  \_\_mutex\_lock\_slowpath+0x14/0x24
\[   31.907858\]I\[0:      swapper/0:    0\]  mutex\_lock+0x40/0xec
\[   31.907866\]I\[0:      swapper/0:    0\]  device\_shutdown+0x108/0x280
\[   31.907875\]I\[0:      swapper/0:    0\]  kernel\_restart+0x4c/0x11c
\[   31.907883\]I\[0:      swapper/0:    0\]  \_\_arm64\_sys\_reboot+0x15c/0x280
\[   31.907890\]I\[0:      swapper/0:    0\]  invoke\_syscall+0x70/0x158
\[   31.907899\]I\[0:      swapper/0:    0\]  el0\_svc\_common+0xb4/0xf4
\[   31.907909\]I\[0:      swapper/0:    0\]  do\_el0\_svc+0x2c/0xb0
\[   31.907918\]I\[0:      swapper/0:    0\]  el0\_svc+0x34/0xe0
\[   31.907928\]I\[0:      swapper/0:    0\]  el0t\_64\_sync\_handler+0x68/0xb4
\[   31.907937\]I\[0:      swapper/0:    0\]  el0t\_64\_sync+0x1a0/0x1a4

\[   31.908774\]I\[0:      swapper/0:    0\]       49                0         11960702      11236868007                0 D(   2) 6 ffffff882e28cb00 \*      kworker/6:0 \[\_\_bio\_queue\_enter\]
\[   31.908783\]I\[0:      swapper/0:    0\] Call trace:
\[   31.908788\]I\[0:      swapper/0:    0\]  \_\_switch\_to+0x174/0x338
\[   31.908796\]I\[0:      swapper/0:    0\]  \_\_schedule+0x5ec/0x9cc
\[   31.908803\]I\[0:      swapper/0:    0\]  schedule+0x7c/0xe8
\[   31.908811\]I\[0:      swapper/0:    0\]  \_\_bio\_queue\_enter+0xb8/0x178
\[   31.908818\]I\[0:      swapper/0:    0\]  blk\_mq\_submit\_bio+0x194/0x67c
\[   31.908827\]I\[0:      swapper/0:    0\]  \_\_submit\_bio+0xb8/0x19c

## Affected and fixed versions

- Linux: \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7de759fceacff5660abf9590d11114215a9d5f3c; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7bd9af254275fad7071d85f04616560deb598d7d; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7774d23622416dbbbdb21bf342b3f0d92cf1dc0f; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 19a198b67767d952c8f3d0cf24eb3100522a8223 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 19a198b67767d952c8f3d0cf24eb3100522a8223 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50098. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50098.md
Affected: Linux >= b294ff3e34490f36233230e9ca70503d3924a6f3, < 7de759fceacff5660abf9590d11114215a9d5f3c; >= b294ff3e34490f36233230e9ca70503d3924a6f3, < 7bd9af254275fad7071d85f04616560deb598d7d; >= b294ff3e34490f36233230e9ca70503d3924a6f3, < 7774d23622416dbbbdb21bf342b3f0d92cf1dc0f; >= b294ff3e34490f36233230e…
Fixed in: Linux 7de759fceacff5660abf9590d11114215a9d5f3c, Linux 7bd9af254275fad7071d85f04616560deb598d7d, Linux 7774d23622416dbbbdb21bf342b3f0d92cf1dc0f, Linux 19a198b67767d952c8f3d0cf24eb3100522a8223

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50098 being exploited?

There is no confirmed exploitation: CVE-2024-50098 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50098?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50098?

Linux \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7de759fceacff5660abf9590d11114215a9d5f3c; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7bd9af254275fad7071d85f04616560deb598d7d; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 7774d23622416dbbbdb21bf342b3f0d92cf1dc0f; \>= b294ff3e34490f36233230e9ca70503d3924a6f3, \< 19a198b67767d952c8f3d0cf24eb3100522a8223; Linux 5.14.

### Is there a fix for CVE-2024-50098?

Yes. Fixed in Linux 7de759fceacff5660abf9590d11114215a9d5f3c, Linux 7bd9af254275fad7071d85f04616560deb598d7d, Linux 7774d23622416dbbbdb21bf342b3f0d92cf1dc0f, Linux 19a198b67767d952c8f3d0cf24eb3100522a8223. Upgrade Linux to 19a198b67767d952c8f3d0cf24eb3100522a8223 or later.

### How do I check if I'm affected by CVE-2024-50098?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7de759fceacff5660abf9590d11114215a9d5f3c>
- patch: <https://git.kernel.org/stable/c/7bd9af254275fad7071d85f04616560deb598d7d>
- patch: <https://git.kernel.org/stable/c/7774d23622416dbbbdb21bf342b3f0d92cf1dc0f>
- patch: <https://git.kernel.org/stable/c/19a198b67767d952c8f3d0cf24eb3100522a8223>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50098>

HTML: <https://flawdb.com/CVE-2024-50098> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50098>
