CVE-2023-53746
Description
In the Linux kernel, the following vulnerability has been resolved: s390/vfio-ap: fix memory leak in vfio_ap device driver The device release callback function invoked to release the matrix device uses the dev_get_drvdata(device *dev) function to retrieve the pointer to the vfio_matrix_dev object in order to free its storage. The problem is, this object is not stored as drvdata with the device; since the kfree function will accept a NULL pointer, the memory for the vfio_matrix_dev object is never freed. Since the device being released is contained within the vfio_matrix_dev object, the container_of macro will be used to retrieve its pointer.
How to fix
- Linux Linux5195de1d5f66b276683240a896783f7f43c4f664, ee17dea3072dec0bc34399a32fa884e26342e4ea, aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749, 6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67, 7b6a02f5bf15931464c79dfd487c57f76aae3496, 8f8cf767589f2131ae5d40f3758429095c701c84 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Linux Linux | 1fde573413b549d52183382e639c1d6ce88f5959 ≤ v < 5195de1d5f66b276683240a896783f7f43c4f664, 1fde573413b549d52183382e639c1d6ce88f5959 ≤ v < ee17dea3072dec0bc34399a32fa884e26342e4ea, 1fde573413b549d52183382e639c1d6ce88f5959 ≤ v < aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749, 1fde573413b549d52183382e639c1d6ce88f5959 ≤ v < 6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67, 1fde573413b549d52183382e639c1d6ce88f5959 ≤ v < 7b6a02f5bf15931464c79dfd487c57f76aae3496, 1fde573413b549d52183382e639c1d6ce88f5959 ≤ v < 8f8cf767589f2131ae5d40f3758429095c701c84, 4.20 | 5195de1d5f66b276683240a896783f7f43c4f664, ee17dea3072dec0bc34399a32fa884e26342e4ea, aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749, 6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67, 7b6a02f5bf15931464c79dfd487c57f76aae3496, 8f8cf767589f2131ae5d40f3758429095c701c84 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.