CVE-2024-53198
xen: Fix the issue of resource not being properly released in xenbus_dev_probe()
Check your servers for CVE-2024-53198
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-53198 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before 87106169b4ce26f85561f953d13d1fd86d99b612 affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before 0aa9e30b5b4af5dd504801689d6d84c584290a45 affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before e8823e6ff313465910edea07581627d85e68d9fd affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before 3fc0996d2fefe61219375fd650601724b8cf2d30 affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before 217bdce88b104269b73603b84d0ab4dd04f481bc affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e affected from 4bac07c993d03434ea902d3d4290d9e45944b66c, before afc545da381ba0c651b2658966ac737032676f01
Other versions: unaffected
|
| Linux |
affected 2.6.23 unaffected before 2.6.23 unaffected from 5.4.287 up to and including 5.4.* unaffected from 5.10.231 up to and including 5.10.* unaffected from 5.15.174 up to and including 5.15.* unaffected from 6.1.120 up to and including 6.1.* unaffected from 6.6.64 up to and including 6.6.* unaffected from 6.11.11 up to and including 6.11.* unaffected from 6.12.2 up to and including 6.12.* unaffected 6.13 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-53198 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-53198
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-53198
trivy image --scanners vuln IMAGE | grep CVE-2024-53198
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/87106169b4ce26f85561f953d13d1fd86d99b612 git.kernel.org
- https://git.kernel.org/stable/c/0aa9e30b5b4af5dd504801689d6d84c584290a45 git.kernel.org
- https://git.kernel.org/stable/c/e8823e6ff313465910edea07581627d85e68d9fd git.kernel.org
- https://git.kernel.org/stable/c/3fc0996d2fefe61219375fd650601724b8cf2d30 git.kernel.org
- https://git.kernel.org/stable/c/804b96f8d0a02fa10b92f28b2e042f9128ed3ffc git.kernel.org
- https://git.kernel.org/stable/c/217bdce88b104269b73603b84d0ab4dd04f481bc git.kernel.org
- https://git.kernel.org/stable/c/2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e git.kernel.org
- https://git.kernel.org/stable/c/afc545da381ba0c651b2658966ac737032676f01 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
Source: the record CVE-2024-53198 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse