CVE-2023-54307 ptp_qoriq: fix memory leak in probe()
A memory leak in the ptp_qoriq driver probe function can lead to resource exhaustion and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-54307?
CVE-2023-54307 is a memory corruption vulnerability in Linux, published on 30 Dec 2025.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ptp_qoriq: fix memory leak in probe()
Smatch complains that: drivers/ptp/ptp_qoriq.c ptp_qoriq_probe() warn: 'base' from ioremap() not released.
Fix this by revising the parameter from 'ptp_qoriq->base' to 'base'. This is only a bug if ptp_qoriq_init() returns on the first -ENODEV error path. For other error paths ptp_qoriq->base and base are the same. And this change makes the code more readable.
Which versions are affected by CVE-2023-54307?
How do I fix CVE-2023-54307?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-54307 being exploited?
There is no known exploitation of CVE-2023-54307 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2023-54307, DEBIAN-CVE-2023-54307, GHSA-36j9-v89w-79c6, UBUNTU-CVE-2023-54307.