CVE-2023-54307
ptp_qoriq: fix memory leak in probe()
Check your servers for CVE-2023-54307
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54307 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7f4399ba405b6201fb318b43091703a34b1489ab, before 46c4993a1514eea3bbc7147d0c81c23cc06c6bed affected from 7f4399ba405b6201fb318b43091703a34b1489ab, before 3907fcb5a439933cf8c10d6dc300bc11eba30de3 affected from 7f4399ba405b6201fb318b43091703a34b1489ab, before c0de1a26e6595b0e7969c5b35990a77a2d93104f affected from 7f4399ba405b6201fb318b43091703a34b1489ab, before 43b4331ce0cd88ccba425e0702ba35c1a52daccf affected from 7f4399ba405b6201fb318b43091703a34b1489ab, before c960785c8168d0e572101ed921b9be3934ed0bc9 affected from 7f4399ba405b6201fb318b43091703a34b1489ab, before f33642224e38d7e0d59336e10e7b4e370b1c4506
Other versions: unaffected
|
| Linux |
affected 5.2 unaffected before 5.2 unaffected from 5.4.240 up to and including 5.4.* unaffected from 5.10.177 up to and including 5.10.* unaffected from 5.15.106 up to and including 5.15.* unaffected from 6.1.23 up to and including 6.1.* unaffected from 6.2.10 up to and including 6.2.* unaffected 6.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54307 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54307
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-54307
trivy image --scanners vuln IMAGE | grep CVE-2023-54307
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/46c4993a1514eea3bbc7147d0c81c23cc06c6bed git.kernel.org
- https://git.kernel.org/stable/c/3907fcb5a439933cf8c10d6dc300bc11eba30de3 git.kernel.org
- https://git.kernel.org/stable/c/c0de1a26e6595b0e7969c5b35990a77a2d93104f git.kernel.org
- https://git.kernel.org/stable/c/43b4331ce0cd88ccba425e0702ba35c1a52daccf git.kernel.org
- https://git.kernel.org/stable/c/c960785c8168d0e572101ed921b9be3934ed0bc9 git.kernel.org
- https://git.kernel.org/stable/c/f33642224e38d7e0d59336e10e7b4e370b1c4506 git.kernel.org
Source: the record CVE-2023-54307 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse