VDB

CVE-2024-53198

CVE-2024-53198 PUBLISHED CVSS 7.8 HIGH

xen: Fix the issue of resource not being properly released in xenbus_dev_probe()

Reported by linux · Published December 27, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extra-commonAmazon Linux6.1.124-134.200.amzn2023
perfAmazon Linux6.1.124-134.200.amzn2023
kernel-modules-extraAmazon Linux6.1.124-134.200.amzn2023
kernel-libbpf-develAmazon Linux6.1.124-134.200.amzn2023
bpftoolAmazon Linux6.1.124-134.200.amzn2023
kernel-livepatch-6.1.124-134.200Amazon Linux1.0-0.amzn2023
kernel-libbpf-staticAmazon Linux6.1.124-134.200.amzn2023
kernelAmazon Linux6.1.124-134.200.amzn2023
kernel-toolsAmazon Linux6.1.124-134.200.amzn2023
linux_kernellinux6.12.2, 6.11.11, 6.6.64, 6.1.120, 5.15.174, 5.10.231, 5.4.287
LinuxLinuxafc545da381ba0c651b2658966ac737032676f01, 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc, 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e, 217bdce88b104269b73603b84d0ab4dd04f481bc, 2.6.23

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux4bac07c993d03434ea902d3d4290d9e45944b66c, 4bac07c993d03434ea902d3d4290d9e45944b66c, 4bac07c993d03434ea902d3d4290d9e45944b66c
LinuxLinux2.6.23, 0, 5.4.287
amazon:2023kernel-modules-extra-common0
amazon:2023perf0
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf-devel0
amazon:2023bpftool0
amazon:2023kernel-livepatch-6.1.124-134.2000
amazon:2023kernel-libbpf-static0
amazon:2023kernel0
amazon:2023kernel-tools0
LinuxLinux2.6.23, 4bac07c993d03434ea902d3d4290d9e45944b66c, 4bac07c993d03434ea902d3d4290d9e45944b66c
amazon:2023kernel-headers0
linuxlinux_kernel2.6.23, 2.6.23, 2.6.23
amazon:2023python3-perf0
amazon:2023kernel-libbpf0
amazon:2023kernel-devel0
amazon:2023kernel-tools-devel0

Timeline

  • Dec 27, 2024 CVE Published
  • Dec 28, 2024 EPSS Score (30 in total, the first dated here)
  • Feb 16, 2025 Coalition ESS Score (18 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 31, 2025 Security Advisory (450 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (367 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-53198
vulnetix vdb fixes CVE-2024-53198

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-53198/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›