CVE-2024-53198

published 27 Dec 2024 · updated 5 Aug 2026

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

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0aa9e30b5b4af5dd504801689d6d84c584290a45, Kernel 217bdce88b104269b73603b84d0ab4dd04f481bc, Kernel 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e and 5 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=2.6.23, >=4bac07c993d03434ea902d3d4290d9e45944b66c <0aa9e30b5b4af5dd504801689d6d84c584290a45, >=4bac07c993d03434ea902d3d4290d9e45944b66c <217bdce88b104269b73603b84d0ab4dd04f481bc, >=4bac07c993d03434ea902d3d4290d9e45944b66c <2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e, >=4bac07c993d03434ea902d3d4290d9e45944b66c <3fc0996d2fefe61219375fd650601724b8cf2d30, >=4bac07c993d03434ea902d3d4290d9e45944b66c <804b96f8d0a02fa10b92f28b2e042f9128ed3ffc, >=4bac07c993d03434ea902d3d4290d9e45944b66c <87106169b4ce26f85561f953d13d1fd86d99b612, >=4bac07c993d03434ea902d3d4290d9e45944b66c <afc545da381ba0c651b2658966ac737032676f01, >=4bac07c993d03434ea902d3d4290d9e45944b66c <e8823e6ff313465910edea07581627d85e68d9fd0aa9e30b5b4af5dd504801689d6d84c584290a45, 217bdce88b104269b73603b84d0ab4dd04f481bc, 2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e, 3fc0996d2fefe61219375fd650601724b8cf2d30, 804b96f8d0a02fa10b92f28b2e042f9128ed3ffc, 87106169b4ce26f85561f953d13d1fd86d99b612, afc545da381ba0c651b2658966ac737032676f01, e8823e6ff313465910edea07581627d85e68d9fd

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-53198 severity on Zeptric[![CVE-2024-53198](https://zeptric.io/badge/cve/CVE-2024-53198.svg)](https://zeptric.io/cve/CVE-2024-53198)