Skip to content
Heist/ feed
Back to feed
UnratedFix available

s390/vfio-ap: fix memory leak in vfio_ap device driver

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.177, 5.15.106, 5.4.240, 6.1.23, 6.2.10
CVEs
CVE-2023-53746
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:24 UTC · Revision 1

Source evidence

s390/vfio-ap: fix memory leak in vfio_ap device driver

core-osv · Original source

Published 8 Dec 2025, 01:19 UTC

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.

osv:CVE-2023-53746

Kernel

Fixed versions: 5.4.240, 5.10.177, 5.15.106, 6.1.23, 6.2.10

Complete source record
{
  "id": "5bb8fafa038b24d3b060f8419364ab6d08cfa44e7769302d22a648b21faf191f",
  "url": "https://osv.dev/vulnerability/CVE-2023-53746",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "s390/vfio-ap: fix memory leak in vfio_ap device driver",
    "summary": "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.",
    "evidence": "osv:CVE-2023-53746",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.240",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.177",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.106",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.2.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-53746",
      "aliases": [
        "CVE-2023-53746"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1fde573413b549d52183382e639c1d6ce88f5959"
                },
                {
                  "fixed": "5195de1d5f66b276683240a896783f7f43c4f664"
                },
                {
                  "fixed": "ee17dea3072dec0bc34399a32fa884e26342e4ea"
                },
                {
                  "fixed": "aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749"
                },
                {
                  "fixed": "6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67"
                },
                {
                  "fixed": "7b6a02f5bf15931464c79dfd487c57f76aae3496"
                },
                {
                  "fixed": "8f8cf767589f2131ae5d40f3758429095c701c84"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53746.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.240"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.177"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.106"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.2.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53746.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.752894868Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/5195de1d5f66b276683240a896783f7f43c4f664",
        "https://git.kernel.org/stable/c/6a40fda14b4be3e38f03cc42ffd4efbc64fb3e67",
        "https://git.kernel.org/stable/c/7b6a02f5bf15931464c79dfd487c57f76aae3496",
        "https://git.kernel.org/stable/c/8f8cf767589f2131ae5d40f3758429095c701c84",
        "https://git.kernel.org/stable/c/aa2bff25e9bb10c935c7ffe3d5f5975bdccb1749",
        "https://git.kernel.org/stable/c/ee17dea3072dec0bc34399a32fa884e26342e4ea",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53746.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53746",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53746.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53746",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 496797,
  "published_at": "2025-12-08T01:19:05.204+00:00"
}