# CVE-2024-53240: xen/netfront: fix crash when removing device

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

- **Severity:** MEDIUM 5.7
- **CVSS:** 5.7 (v3.1, NVD) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; 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.68% (percentile 47, 2026-11-26)
- **Published:** 2024-12-24T09:22:36.448Z
- **Modified:** 2026-06-17T08:08:40.830Z

## Who should check

- Anyone running Linux \>= ed773dd798bf720756d20021b8d8a4a3d7184bda, \< 20f7f0cf7af5d81b218202ef504223af84b16a8f; \>= e6860c889f4ad50b6ab696f5ea154295d72cf27a, \< 1d5354a9182b6d302ae10367cbec1ca339d4e4e7; \>= e6e897d4fe2f89c0bd94600a40bedf5e6e75e050, \< 2657ba851fa3381256d81e431b20041dc232fd88; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< 8b41e6bccf7de93982781be4125211443382e66d; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< fe9a8f5250aed0948b668c8a4e051e3b0fc29f09; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< 7728e974ffbf14f17648dd92ea640b42b654d47c; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< f9244fb55f37356f75c739c57323d9422d7aa0f8; 99859947517e446058ad7243ee81d2f9801fa3dd; f2dd60fd3fe98bd36a91b0c6e10bfe9d66258f84; \>= 5.4.227, \< 5.4.288; …
- Anyone running Linux 6.1

## Description

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

xen/netfront: fix crash when removing device

When removing a netfront device directly after a suspend/resume cycle
it might happen that the queues have not been setup again, causing a
crash during the attempt to stop the queues another time.

Fix that by checking the queues are existing before trying to stop
them.

This is XSA-465 / CVE-2024-53240.

## Affected and fixed versions

- Linux: \>= ed773dd798bf720756d20021b8d8a4a3d7184bda, \< 20f7f0cf7af5d81b218202ef504223af84b16a8f; \>= e6860c889f4ad50b6ab696f5ea154295d72cf27a, \< 1d5354a9182b6d302ae10367cbec1ca339d4e4e7; \>= e6e897d4fe2f89c0bd94600a40bedf5e6e75e050, \< 2657ba851fa3381256d81e431b20041dc232fd88; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< 8b41e6bccf7de93982781be4125211443382e66d; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< fe9a8f5250aed0948b668c8a4e051e3b0fc29f09; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< 7728e974ffbf14f17648dd92ea640b42b654d47c; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< f9244fb55f37356f75c739c57323d9422d7aa0f8; 99859947517e446058ad7243ee81d2f9801fa3dd; f2dd60fd3fe98bd36a91b0c6e10bfe9d66258f84; \>= 5.4.227, \< 5.4.288; … (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-53240. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53240.md
Affected: Linux >= ed773dd798bf720756d20021b8d8a4a3d7184bda, < 20f7f0cf7af5d81b218202ef504223af84b16a8f; >= e6860c889f4ad50b6ab696f5ea154295d72cf27a, < 1d5354a9182b6d302ae10367cbec1ca339d4e4e7; >= e6e897d4fe2f89c0bd94600a40bedf5e6e75e050, < 2657ba851fa3381256d81e431b20041dc232fd88; >= d50b7914fae04d840ce3649…
Fixed in: Linux 20f7f0cf7af5d81b218202ef504223af84b16a8f, Linux 1d5354a9182b6d302ae10367cbec1ca339d4e4e7, Linux 2657ba851fa3381256d81e431b20041dc232fd88, Linux 8b41e6bccf7de93982781be4125211443382e66d, Linux 7728e974ffbf14f17648dd92ea640b42b654d47c, Linux 5.4.288

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

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

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

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

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

Linux \>= ed773dd798bf720756d20021b8d8a4a3d7184bda, \< 20f7f0cf7af5d81b218202ef504223af84b16a8f; \>= e6860c889f4ad50b6ab696f5ea154295d72cf27a, \< 1d5354a9182b6d302ae10367cbec1ca339d4e4e7; \>= e6e897d4fe2f89c0bd94600a40bedf5e6e75e050, \< 2657ba851fa3381256d81e431b20041dc232fd88; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< 8b41e6bccf7de93982781be4125211443382e66d; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< fe9a8f5250aed0948b668c8a4e051e3b0fc29f09; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< 7728e974ffbf14f17648dd92ea640b42b654d47c; \>= d50b7914fae04d840ce36491d22133070b18cca9, \< f9244fb55f37356f75c739c57323d9422d7aa0f8; 99859947517e446058ad7243ee81d2f9801fa3dd; f2dd60fd3fe98bd36a91b0c6e10bfe9d66258f84; \>= 5.4.227, \< 5.4.288; …; Linux 6.1.

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

Yes. Fixed in Linux 20f7f0cf7af5d81b218202ef504223af84b16a8f, Linux 1d5354a9182b6d302ae10367cbec1ca339d4e4e7, Linux 2657ba851fa3381256d81e431b20041dc232fd88, Linux 8b41e6bccf7de93982781be4125211443382e66d, Linux 7728e974ffbf14f17648dd92ea640b42b654d47c, Linux 5.4.288. No fix listed yet: follow the vendor advisory.

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

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/20f7f0cf7af5d81b218202ef504223af84b16a8f>
- patch: <https://git.kernel.org/stable/c/1d5354a9182b6d302ae10367cbec1ca339d4e4e7>
- patch: <https://git.kernel.org/stable/c/2657ba851fa3381256d81e431b20041dc232fd88>
- patch: <https://git.kernel.org/stable/c/8b41e6bccf7de93982781be4125211443382e66d>
- patch: <https://git.kernel.org/stable/c/fe9a8f5250aed0948b668c8a4e051e3b0fc29f09>
- patch: <https://git.kernel.org/stable/c/7728e974ffbf14f17648dd92ea640b42b654d47c>
- patch: <https://git.kernel.org/stable/c/f9244fb55f37356f75c739c57323d9422d7aa0f8>
- other: <http://xenbits.xen.org/xsa/advisory-465.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.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-53240>

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