Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

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

CVSS 3.1 7.8 HIGHCheck source for fixed versionsKEV status unknown

cve-program · CVE-2024-53198

Published

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2024-53198

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/xen/xenbus/xenbus_probe.c"
                    ],
                    "versions": [
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "87106169b4ce26f85561f953d13d1fd86d99b612",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "0aa9e30b5b4af5dd504801689d6d84c584290a45",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "e8823e6ff313465910edea07581627d85e68d9fd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "3fc0996d2fefe61219375fd650601724b8cf2d30",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "804b96f8d0a02fa10b92f28b2e042f9128ed3ffc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "217bdce88b104269b73603b84d0ab4dd04f481bc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "2f977a4c82d35d063f5fe198bbc501c4b1c5ea0e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4bac07c993d03434ea902d3d4290d9e45944b66c",
                            "lessThan": "afc545da381ba0c651b2658966ac737032676f01",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/xen/xenbus/xenbus_probe.c"
                    ],
                    "versions": [
                        {
                            "version": "2.6.23",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.23",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.287",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.231",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.174",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.120",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.64",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11.11",
                            "lessThanOrEqual": "6.11.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.2",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.13",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 23 Nov 00:59 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current