# CVE-2023-53746: s390/vfio-ap: fix memory leak in vfio_ap device driver

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2025-12-08T01:19:05.204Z
- Modified: 2026-06-17T06:45:59.977Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1fde573413b549d52183382e639c1d6ce88f5959 before 5195de1d5f66b276683240a896783f7f43c4f664; from 1fde573413b549d52183382e639c1d6ce88f5959 before ee17dea3072dec0bc34399a32fa884e26342e4ea; from 1fde573413b549d52183382e639c1d6ce88f5959 before aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749; from 1fde573413b549d52183382e639c1d6ce88f5959 before 6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67; from 1fde573413b549d52183382e639c1d6ce88f5959 before 7b6a02f5bf15931464c79dfd487c57f76aae3496; from 1fde573413b549d52183382e639c1d6ce88f5959 before 8f8cf767589f2131ae5d40f3758429095c701c84; 4.20 (not affected: before 4.20; from 5.4.240 up to 5.4.*; from 5.10.177 up to 5.10.*; from 5.15.106 up to 5.15.*; from 6.1.23 up to 6.1.*; from 6.2.10 up to 6.2.*; from 6.3 up to *)

## References

- <https://git.kernel.org/stable/c/5195de1d5f66b276683240a896783f7f43c4f664>
- <https://git.kernel.org/stable/c/ee17dea3072dec0bc34399a32fa884e26342e4ea>
- <https://git.kernel.org/stable/c/aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749>
- <https://git.kernel.org/stable/c/6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67>
- <https://git.kernel.org/stable/c/7b6a02f5bf15931464c79dfd487c57f76aae3496>
- <https://git.kernel.org/stable/c/8f8cf767589f2131ae5d40f3758429095c701c84>

## Sources

- CVE List: [CVE-2023-53746](https://www.cve.org/CVERecord?id=CVE-2023-53746), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53746](https://nvd.nist.gov/vuln/detail/CVE-2023-53746), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53746 · Whole record: https://cve.day/CVE-2023-53746.json · Rebuilt by cve.day 2026-11-25T22:58:35.041Z
