# CVE-2024-49863: vhost/scsi: null-ptr-dereference in vhost\_scsi\_get\_req()

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-10-21T18:01:07.166Z
- **Modified:** 2026-06-17T08:00:36.503Z

## Who should check

- Anyone running Linux \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 6592347f06e2b19a624270a85ad4b3ae48c3b241; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 46128370a72c431df733af5ebb065c4d48c9ad39; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< ace9c778a214da9c98d7b69d904d1b0816f4f681; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 25613e6d9841a1f9fb985be90df921fa99f800de; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 00fb5b23e1c9cdbe496f5cd6b40367cb895f6c93; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 61517f33e76d2c5247c1e61e668693afe5b67e6f; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 221af82f606d928ccef19a16d35633c63026f1be
- Anyone running Linux 4.20

## Description

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

vhost/scsi: null-ptr-dereference in vhost\_scsi\_get\_req()

Since commit 3f8ca2e115e5 ("vhost/scsi: Extract common handling code
from control queue handler") a null pointer dereference bug can be
triggered when guest sends an SCSI AN request.

In vhost\_scsi\_ctl\_handle\_vq(), \`vc.target\` is assigned with
\`&v\_req.tmf.lun\[1\]\` within a switch-case block and is then passed to
vhost\_scsi\_get\_req() which extracts \`vc-\>req\` and \`tpg\`. However, for
a \`VIRTIO\_SCSI\_T\_AN\_\*\` request, tpg is not required, so \`vc.target\` is
set to NULL in this branch. Later, in vhost\_scsi\_get\_req(),
\`vc-\>target\` is dereferenced without being checked, leading to a null
pointer dereference bug. This bug can be triggered from guest.

When this bug occurs, the vhost\_worker process is killed while holding
\`vq-\>mutex\` and the corresponding tpg will remain occupied
indefinitely.

Below is the KASAN report:
Oops: general protection fault, probably for non-canonical address
0xdffffc0000000000: 0000 \[\#1\] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range \[0x0000000000000000-0x0000000000000007\]
CPU: 1 PID: 840 Comm: poc Not tainted 6.10.0+ \#1
Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS
1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:vhost\_scsi\_get\_req+0x165/0x3a0
Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2b 02 00 00
48 b8 00 00 00 00 00 fc ff df 4d 8b 65 30 4c 89 e2 48 c1 ea 03 \<0f\> b6
04 02 4c 89 e2 83 e2 07 38 d0 7f 08 84 c0 0f 85 be 01 00 00
RSP: 0018:ffff888017affb50 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88801b000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888017affcb8
RBP: ffff888017affb80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888017affc88 R14: ffff888017affd1c R15: ffff888017993000
FS:  000055556e076500(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200027c0 CR3: 0000000010ed0004 CR4: 0000000000370ef0
Call Trace:
 \<TASK\>
 ? show\_regs+0x86/0xa0
 ? die\_addr+0x4b/0xd0
 ? exc\_general\_protection+0x163/0x260
 ? asm\_exc\_general\_protection+0x27/0x30
 ? vhost\_scsi\_get\_req+0x165/0x3a0
 vhost\_scsi\_ctl\_handle\_vq+0x2a4/0xca0
 ? \_\_pfx\_vhost\_scsi\_ctl\_handle\_vq+0x10/0x10
 ? \_\_switch\_to+0x721/0xeb0
 ? \_\_schedule+0xda5/0x5710
 ? \_\_kasan\_check\_write+0x14/0x30
 ? \_raw\_spin\_lock+0x82/0xf0
 vhost\_scsi\_ctl\_handle\_kick+0x52/0x90
 vhost\_run\_work\_list+0x134/0x1b0
 vhost\_task\_fn+0x121/0x350
...
 \</TASK\>
---\[ end trace 0000000000000000 \]---

Let's add a check in vhost\_scsi\_get\_req.

\[whitespace fixes\]

## Affected and fixed versions

- Linux: \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 6592347f06e2b19a624270a85ad4b3ae48c3b241; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 46128370a72c431df733af5ebb065c4d48c9ad39; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< ace9c778a214da9c98d7b69d904d1b0816f4f681; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 25613e6d9841a1f9fb985be90df921fa99f800de; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 00fb5b23e1c9cdbe496f5cd6b40367cb895f6c93; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 61517f33e76d2c5247c1e61e668693afe5b67e6f; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 221af82f606d928ccef19a16d35633c63026f1be (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 221af82f606d928ccef19a16d35633c63026f1be 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-49863. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49863.md
Affected: Linux >= 3f8ca2e115e55af4c15d97dda635e948d2e380be, < 6592347f06e2b19a624270a85ad4b3ae48c3b241; >= 3f8ca2e115e55af4c15d97dda635e948d2e380be, < 46128370a72c431df733af5ebb065c4d48c9ad39; >= 3f8ca2e115e55af4c15d97dda635e948d2e380be, < ace9c778a214da9c98d7b69d904d1b0816f4f681; >= 3f8ca2e115e55af4c15d97d…
Fixed in: Linux 6592347f06e2b19a624270a85ad4b3ae48c3b241, Linux 46128370a72c431df733af5ebb065c4d48c9ad39, Linux 25613e6d9841a1f9fb985be90df921fa99f800de, Linux 00fb5b23e1c9cdbe496f5cd6b40367cb895f6c93, Linux 61517f33e76d2c5247c1e61e668693afe5b67e6f, Linux 221af82f606d928ccef19a16d35633c63026f1be

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

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

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

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

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

Linux \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 6592347f06e2b19a624270a85ad4b3ae48c3b241; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 46128370a72c431df733af5ebb065c4d48c9ad39; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< ace9c778a214da9c98d7b69d904d1b0816f4f681; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 25613e6d9841a1f9fb985be90df921fa99f800de; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 00fb5b23e1c9cdbe496f5cd6b40367cb895f6c93; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 61517f33e76d2c5247c1e61e668693afe5b67e6f; \>= 3f8ca2e115e55af4c15d97dda635e948d2e380be, \< 221af82f606d928ccef19a16d35633c63026f1be; Linux 4.20.

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

Yes. Fixed in Linux 6592347f06e2b19a624270a85ad4b3ae48c3b241, Linux 46128370a72c431df733af5ebb065c4d48c9ad39, Linux 25613e6d9841a1f9fb985be90df921fa99f800de, Linux 00fb5b23e1c9cdbe496f5cd6b40367cb895f6c93, Linux 61517f33e76d2c5247c1e61e668693afe5b67e6f, Linux 221af82f606d928ccef19a16d35633c63026f1be. Upgrade Linux to 221af82f606d928ccef19a16d35633c63026f1be or later.

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

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/6592347f06e2b19a624270a85ad4b3ae48c3b241>
- patch: <https://git.kernel.org/stable/c/46128370a72c431df733af5ebb065c4d48c9ad39>
- patch: <https://git.kernel.org/stable/c/ace9c778a214da9c98d7b69d904d1b0816f4f681>
- patch: <https://git.kernel.org/stable/c/25613e6d9841a1f9fb985be90df921fa99f800de>
- patch: <https://git.kernel.org/stable/c/00fb5b23e1c9cdbe496f5cd6b40367cb895f6c93>
- patch: <https://git.kernel.org/stable/c/61517f33e76d2c5247c1e61e668693afe5b67e6f>
- patch: <https://git.kernel.org/stable/c/221af82f606d928ccef19a16d35633c63026f1be>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- 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-49863>

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