# CVE-2024-46735: ublk\_drv: fix NULL pointer dereference in ublk\_ctrl\_start\_recovery()

> 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, NVD) `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)
- **CWE:** CWE-476
- **Published:** 2024-09-18T07:11:57.279Z
- **Modified:** 2026-06-17T07:55:49.447Z

## Who should check

- Anyone running Linux \>= c732a852b419fa057b53657e2daaf9433940391c, \< ca249435893dda766f3845c15ca77ca5672022d8; \>= c732a852b419fa057b53657e2daaf9433940391c, \< 136a29d8112df4ea0a57f9602ddf3579e04089dc; \>= c732a852b419fa057b53657e2daaf9433940391c, \< 7c890ef60bf417d3fe5c6f7a9f6cef0e1d77f74f; \>= c732a852b419fa057b53657e2daaf9433940391c, \< e58f5142f88320a5b1449f96a146f2f24615c5c7
- Anyone running Linux 6.1

## Description

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

ublk\_drv: fix NULL pointer dereference in ublk\_ctrl\_start\_recovery()

When two UBLK\_CMD\_START\_USER\_RECOVERY commands are submitted, the
first one sets 'ubq-\>ubq\_daemon' to NULL, and the second one triggers
WARN in ublk\_queue\_reinit() and subsequently a NULL pointer dereference
issue.

Fix it by adding the check in ublk\_ctrl\_start\_recovery() and return
immediately in case of zero 'ub-\>nr\_queues\_ready'.

  BUG: kernel NULL pointer dereference, address: 0000000000000028
  RIP: 0010:ublk\_ctrl\_start\_recovery.constprop.0+0x82/0x180
  Call Trace:
   \<TASK\>
   ? \_\_die+0x20/0x70
   ? page\_fault\_oops+0x75/0x170
   ? exc\_page\_fault+0x64/0x140
   ? asm\_exc\_page\_fault+0x22/0x30
   ? ublk\_ctrl\_start\_recovery.constprop.0+0x82/0x180
   ublk\_ctrl\_uring\_cmd+0x4f7/0x6c0
   ? pick\_next\_task\_idle+0x26/0x40
   io\_uring\_cmd+0x9a/0x1b0
   io\_issue\_sqe+0x193/0x3f0
   io\_wq\_submit\_work+0x9b/0x390
   io\_worker\_handle\_work+0x165/0x360
   io\_wq\_worker+0xcb/0x2f0
   ? finish\_task\_switch.isra.0+0x203/0x290
   ? finish\_task\_switch.isra.0+0x203/0x290
   ? \_\_pfx\_io\_wq\_worker+0x10/0x10
   ret\_from\_fork+0x2d/0x50
   ? \_\_pfx\_io\_wq\_worker+0x10/0x10
   ret\_from\_fork\_asm+0x1a/0x30
   \</TASK\>

## Affected and fixed versions

- Linux: \>= c732a852b419fa057b53657e2daaf9433940391c, \< ca249435893dda766f3845c15ca77ca5672022d8; \>= c732a852b419fa057b53657e2daaf9433940391c, \< 136a29d8112df4ea0a57f9602ddf3579e04089dc; \>= c732a852b419fa057b53657e2daaf9433940391c, \< 7c890ef60bf417d3fe5c6f7a9f6cef0e1d77f74f; \>= c732a852b419fa057b53657e2daaf9433940391c, \< e58f5142f88320a5b1449f96a146f2f24615c5c7 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-46735.md
Affected: Linux >= c732a852b419fa057b53657e2daaf9433940391c, < ca249435893dda766f3845c15ca77ca5672022d8; >= c732a852b419fa057b53657e2daaf9433940391c, < 136a29d8112df4ea0a57f9602ddf3579e04089dc; >= c732a852b419fa057b53657e2daaf9433940391c, < 7c890ef60bf417d3fe5c6f7a9f6cef0e1d77f74f; >= c732a852b419fa057b53657…
Fixed in: Linux 136a29d8112df4ea0a57f9602ddf3579e04089dc, Linux 7c890ef60bf417d3fe5c6f7a9f6cef0e1d77f74f

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-46735 being exploited?

There is no confirmed exploitation: CVE-2024-46735 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-46735?

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

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

Linux \>= c732a852b419fa057b53657e2daaf9433940391c, \< ca249435893dda766f3845c15ca77ca5672022d8; \>= c732a852b419fa057b53657e2daaf9433940391c, \< 136a29d8112df4ea0a57f9602ddf3579e04089dc; \>= c732a852b419fa057b53657e2daaf9433940391c, \< 7c890ef60bf417d3fe5c6f7a9f6cef0e1d77f74f; \>= c732a852b419fa057b53657e2daaf9433940391c, \< e58f5142f88320a5b1449f96a146f2f24615c5c7; Linux 6.1.

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

Yes. Fixed in Linux 136a29d8112df4ea0a57f9602ddf3579e04089dc, Linux 7c890ef60bf417d3fe5c6f7a9f6cef0e1d77f74f. No fix listed yet: follow the vendor advisory.

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

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/ca249435893dda766f3845c15ca77ca5672022d8>
- patch: <https://git.kernel.org/stable/c/136a29d8112df4ea0a57f9602ddf3579e04089dc>
- patch: <https://git.kernel.org/stable/c/7c890ef60bf417d3fe5c6f7a9f6cef0e1d77f74f>
- patch: <https://git.kernel.org/stable/c/e58f5142f88320a5b1449f96a146f2f24615c5c7>
- 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-46735>

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