# CVE-2023-54307: ptp\_qoriq: fix memory leak in probe()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:23:40.491Z
- **Modified:** 2026-06-17T06:47:11.807Z

## Who should check

- Anyone running Linux \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 46c4993a1514eea3bbc7147d0c81c23cc06c6bed; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 3907fcb5a439933cf8c10d6dc300bc11eba30de3; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< c0de1a26e6595b0e7969c5b35990a77a2d93104f; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 43b4331ce0cd88ccba425e0702ba35c1a52daccf; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< c960785c8168d0e572101ed921b9be3934ed0bc9; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< f33642224e38d7e0d59336e10e7b4e370b1c4506
- Anyone running Linux 5.2

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

## Affected and fixed versions

- Linux: \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 46c4993a1514eea3bbc7147d0c81c23cc06c6bed; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 3907fcb5a439933cf8c10d6dc300bc11eba30de3; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< c0de1a26e6595b0e7969c5b35990a77a2d93104f; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 43b4331ce0cd88ccba425e0702ba35c1a52daccf; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< c960785c8168d0e572101ed921b9be3934ed0bc9; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< f33642224e38d7e0d59336e10e7b4e370b1c4506 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54307. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54307.md
Affected: Linux >= 7f4399ba405b6201fb318b43091703a34b1489ab, < 46c4993a1514eea3bbc7147d0c81c23cc06c6bed; >= 7f4399ba405b6201fb318b43091703a34b1489ab, < 3907fcb5a439933cf8c10d6dc300bc11eba30de3; >= 7f4399ba405b6201fb318b43091703a34b1489ab, < c0de1a26e6595b0e7969c5b35990a77a2d93104f; >= 7f4399ba405b6201fb318b4…
Fixed in: Linux 46c4993a1514eea3bbc7147d0c81c23cc06c6bed, Linux 3907fcb5a439933cf8c10d6dc300bc11eba30de3, Linux 43b4331ce0cd88ccba425e0702ba35c1a52daccf

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54307 being exploited?

There is no confirmed exploitation: CVE-2023-54307 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54307?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54307?

Linux \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 46c4993a1514eea3bbc7147d0c81c23cc06c6bed; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 3907fcb5a439933cf8c10d6dc300bc11eba30de3; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< c0de1a26e6595b0e7969c5b35990a77a2d93104f; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< 43b4331ce0cd88ccba425e0702ba35c1a52daccf; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< c960785c8168d0e572101ed921b9be3934ed0bc9; \>= 7f4399ba405b6201fb318b43091703a34b1489ab, \< f33642224e38d7e0d59336e10e7b4e370b1c4506; Linux 5.2.

### Is there a fix for CVE-2023-54307?

Yes. Fixed in Linux 46c4993a1514eea3bbc7147d0c81c23cc06c6bed, Linux 3907fcb5a439933cf8c10d6dc300bc11eba30de3, Linux 43b4331ce0cd88ccba425e0702ba35c1a52daccf. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54307?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/46c4993a1514eea3bbc7147d0c81c23cc06c6bed>
- other: <https://git.kernel.org/stable/c/3907fcb5a439933cf8c10d6dc300bc11eba30de3>
- other: <https://git.kernel.org/stable/c/c0de1a26e6595b0e7969c5b35990a77a2d93104f>
- other: <https://git.kernel.org/stable/c/43b4331ce0cd88ccba425e0702ba35c1a52daccf>
- other: <https://git.kernel.org/stable/c/c960785c8168d0e572101ed921b9be3934ed0bc9>
- other: <https://git.kernel.org/stable/c/f33642224e38d7e0d59336e10e7b4e370b1c4506>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54307>

HTML: <https://flawdb.com/CVE-2023-54307> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54307>
