CVE Database›CVE-2023-53746

CVE-2023-53746

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

Loading…

Severity

Low

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · December 8, 2025

Updated · July 22, 2026

Description

In the s390 VFIO-AP driver, memory allocated for the vfio_matrix_dev structure is never released during device cleanup. The release callback incorrectly uses dev_get_drvdata() to locate the object, but since it was never stored there, the function returns NULL and kfree() silently accepts it. The correct approach requires container_of() to retrieve the enclosing structure.

Statement

This leak occurs exclusively on IBM s390 mainframe systems using VFIO passthrough for cryptographic adapters. Systems not utilizing AP device virtualization remain unaffected.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-763 · Release of Invalid Pointer or Reference