# CVE-2024-53198: xen: Fix the issue of resource not being properly released in xenbus\_dev\_probe()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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)
- **CWE:** CWE-401
- **Published:** 2024-12-27T13:49:40.339Z
- **Modified:** 2026-08-05T11:44:34.804Z

## Who should check

- Anyone running Linux \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 87106169b4ce26f85561f953d13d1fd86d99b612; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 0aa9e30b5b4af5dd504801689d6d84c584290a45; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< e8823e6ff313465910edea07581627d85e68d9fd; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 3fc0996d2fefe61219375fd650601724b8cf2d30; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 217bdce88b104269b73603b84d0ab4dd04f481bc; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< afc545da381ba0c651b2658966ac737032676f01
- Anyone running Linux 2.6.23

## Description

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

xen: Fix the issue of resource not being properly released in xenbus\_dev\_probe()

This patch fixes an issue in the function xenbus\_dev\_probe(). In the
xenbus\_dev\_probe() function, within the if (err) branch at line 313, the
program incorrectly returns err directly without releasing the resources
allocated by err = drv-\>probe(dev, id). As the return value is non-zero,
the upper layers assume the processing logic has failed. However, the probe
operation was performed earlier without a corresponding remove operation.
Since the probe actually allocates resources, failing to perform the remove
operation could lead to problems.

To fix this issue, we followed the resource release logic of the
xenbus\_dev\_remove() function by adding a new block fail\_remove before the
fail\_put block. After entering the branch if (err) at line 313, the
function will use a goto statement to jump to the fail\_remove block,
ensuring that the previously acquired resources are correctly released,
thus preventing the reference count leak.

This bug was identified by an experimental static analysis tool developed
by our team. The tool specializes in analyzing reference count operations
and detecting potential issues where resources are not properly managed.
In this case, the tool flagged the missing release operation as a
potential problem, which led to the development of this patch.

## Affected and fixed versions

- Linux: \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 87106169b4ce26f85561f953d13d1fd86d99b612; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 0aa9e30b5b4af5dd504801689d6d84c584290a45; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< e8823e6ff313465910edea07581627d85e68d9fd; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 3fc0996d2fefe61219375fd650601724b8cf2d30; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 217bdce88b104269b73603b84d0ab4dd04f481bc; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< afc545da381ba0c651b2658966ac737032676f01 (cvelist)
- Linux: 2.6.23 (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-53198. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53198.md
Affected: Linux >= 4bac07c993d03434ea902d3d4290d9e45944b66c, < 87106169b4ce26f85561f953d13d1fd86d99b612; >= 4bac07c993d03434ea902d3d4290d9e45944b66c, < 0aa9e30b5b4af5dd504801689d6d84c584290a45; >= 4bac07c993d03434ea902d3d4290d9e45944b66c, < e8823e6ff313465910edea07581627d85e68d9fd; >= 4bac07c993d03434ea902d3…
Fixed in: Linux 87106169b4ce26f85561f953d13d1fd86d99b612, Linux 0aa9e30b5b4af5dd504801689d6d84c584290a45, Linux 3fc0996d2fefe61219375fd650601724b8cf2d30, Linux 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc, Linux 217bdce88b104269b73603b84d0ab4dd04f481bc, Linux 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e

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

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

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

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

Linux \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 87106169b4ce26f85561f953d13d1fd86d99b612; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 0aa9e30b5b4af5dd504801689d6d84c584290a45; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< e8823e6ff313465910edea07581627d85e68d9fd; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 3fc0996d2fefe61219375fd650601724b8cf2d30; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 217bdce88b104269b73603b84d0ab4dd04f481bc; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e; \>= 4bac07c993d03434ea902d3d4290d9e45944b66c, \< afc545da381ba0c651b2658966ac737032676f01; Linux 2.6.23.

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

Yes. Fixed in Linux 87106169b4ce26f85561f953d13d1fd86d99b612, Linux 0aa9e30b5b4af5dd504801689d6d84c584290a45, Linux 3fc0996d2fefe61219375fd650601724b8cf2d30, Linux 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc, Linux 217bdce88b104269b73603b84d0ab4dd04f481bc, Linux 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e. No fix listed yet: follow the vendor advisory.

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

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/87106169b4ce26f85561f953d13d1fd86d99b612>
- patch: <https://git.kernel.org/stable/c/0aa9e30b5b4af5dd504801689d6d84c584290a45>
- patch: <https://git.kernel.org/stable/c/e8823e6ff313465910edea07581627d85e68d9fd>
- patch: <https://git.kernel.org/stable/c/3fc0996d2fefe61219375fd650601724b8cf2d30>
- patch: <https://git.kernel.org/stable/c/804b96f8d0a02fa10b92f28b2e042f9128ed3ffc>
- patch: <https://git.kernel.org/stable/c/217bdce88b104269b73603b84d0ab4dd04f481bc>
- patch: <https://git.kernel.org/stable/c/2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e>
- patch: <https://git.kernel.org/stable/c/afc545da381ba0c651b2658966ac737032676f01>
- 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-53198>

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