# CVE-2024-35944: VMCI: Fix memcpy() run-time warning in dg\_dispatch\_as\_host()

> 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.34% (percentile 20, 2026-11-26)
- **Published:** 2024-05-19T10:10:48.183Z
- **Modified:** 2026-10-15T01:17:54.707Z

## Who should check

- Anyone running Linux \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< e87bb99d2df6512d8ee37a5d63d2ca9a39a8c051; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< f15eca95138b3d4ec17b63c3c1937b0aa0d3624b; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< ad78c5047dc4076d0b3c4fad4f42ffe9c86e8100; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 130b0cd064874e0d0f58e18fb00e6f3993e90c74; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< feacd430b42bbfa9ab3ed9e4f38b86c43e348c75; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< dae70a57565686f16089737adb8ac64471570f73; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 491a1eb07c2bd8841d63cb5263455e185be5866f; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 19b070fefd0d024af3daa7329cbc0d00de5302ec
- Anyone running Linux 3.9

## Description

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

VMCI: Fix memcpy() run-time warning in dg\_dispatch\_as\_host()

Syzkaller hit 'WARNING in dg\_dispatch\_as\_host' bug.

memcpy: detected field-spanning write (size 56) of single field "&dg\_info-\>msg"
at drivers/misc/vmw\_vmci/vmci\_datagram.c:237 (size 24)

WARNING: CPU: 0 PID: 1555 at drivers/misc/vmw\_vmci/vmci\_datagram.c:237
dg\_dispatch\_as\_host+0x88e/0xa60 drivers/misc/vmw\_vmci/vmci\_datagram.c:237

Some code commentry, based on my understanding:

544 \#define VMCI\_DG\_SIZE(\_dg) (VMCI\_DG\_HEADERSIZE + (size\_t)(\_dg)-\>payload\_size)
/// This is 24 + payload\_size

memcpy(&dg\_info-\>msg, dg, dg\_size);
	Destination = dg\_info-\>msg ---\> this is a 24 byte
					structure(struct vmci\_datagram)
	Source = dg --\> this is a 24 byte structure (struct vmci\_datagram)
	Size = dg\_size = 24 + payload\_size

{payload\_size = 56-24 =32} -- Syzkaller managed to set payload\_size to 32.

 35 struct delayed\_datagram\_info {
 36         struct datagram\_entry \*entry;
 37         struct work\_struct work;
 38         bool in\_dg\_host\_queue;
 39         /\* msg and msg\_payload must be together. \*/
 40         struct vmci\_datagram msg;
 41         u8 msg\_payload\[\];
 42 };

So those extra bytes of payload are copied into msg\_payload\[\], a run time
warning is seen while fuzzing with Syzkaller.

One possible way to fix the warning is to split the memcpy() into
two parts -- one -- direct assignment of msg and second taking care of payload.

Gustavo quoted:
"Under FORTIFY\_SOURCE we should not copy data across multiple members
in a structure."

## Affected and fixed versions

- Linux: \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< e87bb99d2df6512d8ee37a5d63d2ca9a39a8c051; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< f15eca95138b3d4ec17b63c3c1937b0aa0d3624b; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< ad78c5047dc4076d0b3c4fad4f42ffe9c86e8100; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 130b0cd064874e0d0f58e18fb00e6f3993e90c74; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< feacd430b42bbfa9ab3ed9e4f38b86c43e348c75; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< dae70a57565686f16089737adb8ac64471570f73; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 491a1eb07c2bd8841d63cb5263455e185be5866f; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 19b070fefd0d024af3daa7329cbc0d00de5302ec (cvelist)
- Linux: 3.9 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-35944.md
Affected: Linux >= a110b7ebb9c674a2b591af2780dd512ad0198d50, < e87bb99d2df6512d8ee37a5d63d2ca9a39a8c051; >= a110b7ebb9c674a2b591af2780dd512ad0198d50, < f15eca95138b3d4ec17b63c3c1937b0aa0d3624b; >= a110b7ebb9c674a2b591af2780dd512ad0198d50, < ad78c5047dc4076d0b3c4fad4f42ffe9c86e8100; >= a110b7ebb9c674a2b591af2…
Fixed in: Linux 130b0cd064874e0d0f58e18fb00e6f3993e90c74, Linux 491a1eb07c2bd8841d63cb5263455e185be5866f, Linux 19b070fefd0d024af3daa7329cbc0d00de5302ec

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

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

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

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

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

Linux \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< e87bb99d2df6512d8ee37a5d63d2ca9a39a8c051; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< f15eca95138b3d4ec17b63c3c1937b0aa0d3624b; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< ad78c5047dc4076d0b3c4fad4f42ffe9c86e8100; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 130b0cd064874e0d0f58e18fb00e6f3993e90c74; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< feacd430b42bbfa9ab3ed9e4f38b86c43e348c75; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< dae70a57565686f16089737adb8ac64471570f73; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 491a1eb07c2bd8841d63cb5263455e185be5866f; \>= a110b7ebb9c674a2b591af2780dd512ad0198d50, \< 19b070fefd0d024af3daa7329cbc0d00de5302ec; Linux 3.9.

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

Yes. Fixed in Linux 130b0cd064874e0d0f58e18fb00e6f3993e90c74, Linux 491a1eb07c2bd8841d63cb5263455e185be5866f, Linux 19b070fefd0d024af3daa7329cbc0d00de5302ec. Upgrade Linux to 19b070fefd0d024af3daa7329cbc0d00de5302ec or later.

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

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/e87bb99d2df6512d8ee37a5d63d2ca9a39a8c051>
- patch: <https://git.kernel.org/stable/c/f15eca95138b3d4ec17b63c3c1937b0aa0d3624b>
- patch: <https://git.kernel.org/stable/c/ad78c5047dc4076d0b3c4fad4f42ffe9c86e8100>
- patch: <https://git.kernel.org/stable/c/130b0cd064874e0d0f58e18fb00e6f3993e90c74>
- patch: <https://git.kernel.org/stable/c/feacd430b42bbfa9ab3ed9e4f38b86c43e348c75>
- patch: <https://git.kernel.org/stable/c/dae70a57565686f16089737adb8ac64471570f73>
- patch: <https://git.kernel.org/stable/c/491a1eb07c2bd8841d63cb5263455e185be5866f>
- patch: <https://git.kernel.org/stable/c/19b070fefd0d024af3daa7329cbc0d00de5302ec>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-35944>

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