{"id":"CVE-2023-53746","aliases":["CVE-2023-53746"],"related":[],"kind":"vulnerability","state":"published","title":"s390/vfio-ap: fix memory leak in vfio_ap device driver","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/vfio-ap: fix memory leak in vfio_ap device driver\n\nThe device release callback function invoked to release the matrix device\nuses the dev_get_drvdata(device *dev) function to retrieve the\npointer to the vfio_matrix_dev object in order to free its storage. The\nproblem is, this object is not stored as drvdata with the device; since the\nkfree function will accept a NULL pointer, the memory for the\nvfio_matrix_dev object is never freed.\n\nSince the device being released is contained within the vfio_matrix_dev\nobject, the container_of macro will be used to retrieve its pointer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/vfio-ap: fix memory leak in vfio_ap device driver\n\nThe device release callback function invoked to release the matrix device\nuses the dev_get_drvdata(device *dev) function to retrieve the\npointer to the vfio_matrix_dev object in order to free its storage. The\nproblem is, this object is not stored as drvdata with the device; since the\nkfree function will accept a NULL pointer, the memory for the\nvfio_matrix_dev object is never freed.\n\nSince the device being released is contained within the vfio_matrix_dev\nobject, the container_of macro will be used to retrieve its pointer.","source":"cvelist"}],"published":"2025-12-08T01:19:05.204Z","modified":"2026-06-17T06:45:59.977Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1fde573413b549d52183382e639c1d6ce88f5959","fixed":"5195de1d5f66b276683240a896783f7f43c4f664","status":"affected"},{"type":"git","introduced":"1fde573413b549d52183382e639c1d6ce88f5959","fixed":"ee17dea3072dec0bc34399a32fa884e26342e4ea","status":"affected"},{"type":"git","introduced":"1fde573413b549d52183382e639c1d6ce88f5959","fixed":"aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749","status":"affected"},{"type":"git","introduced":"1fde573413b549d52183382e639c1d6ce88f5959","fixed":"6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67","status":"affected"},{"type":"git","introduced":"1fde573413b549d52183382e639c1d6ce88f5959","fixed":"7b6a02f5bf15931464c79dfd487c57f76aae3496","status":"affected"},{"type":"git","introduced":"1fde573413b549d52183382e639c1d6ce88f5959","fixed":"8f8cf767589f2131ae5d40f3758429095c701c84","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.20","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.20","status":"unaffected"},{"type":"semver","introduced":"5.4.240","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.177","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.106","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.23","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.10","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5195de1d5f66b276683240a896783f7f43c4f664","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee17dea3072dec0bc34399a32fa884e26342e4ea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b6a02f5bf15931464c79dfd487c57f76aae3496","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f8cf767589f2131ae5d40f3758429095c701c84","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53746","url":"https://www.cve.org/CVERecord?id=CVE-2023-53746","licence":"CVE Terms of Use","modified":"2026-05-11T19:50:54.095Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53746","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53746","licence":"Public domain","modified":"2026-06-17T06:45:59.977Z"}],"updatedAt":"2026-11-25T22:58:35.041Z","epss":{"score":0.00285,"percentile":0.13583,"date":"2026-11-30T12:00:22.000Z"}}