CVE-2023-54307 (GCVE-0-2023-54307)
Vulnerability from cvelistv5 – Published: 2025-12-30 12:23 – Updated: 2025-12-30 12:23
VLAI?
Title
ptp_qoriq: fix memory leak in probe()
Summary
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.
Severity ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux |
Affected:
7f4399ba405b6201fb318b43091703a34b1489ab , < 46c4993a1514eea3bbc7147d0c81c23cc06c6bed
(git)
Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < 3907fcb5a439933cf8c10d6dc300bc11eba30de3 (git) Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < c0de1a26e6595b0e7969c5b35990a77a2d93104f (git) Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < 43b4331ce0cd88ccba425e0702ba35c1a52daccf (git) Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < c960785c8168d0e572101ed921b9be3934ed0bc9 (git) Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < f33642224e38d7e0d59336e10e7b4e370b1c4506 (git) |
|||||||
|
|||||||||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/ptp/ptp_qoriq.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "46c4993a1514eea3bbc7147d0c81c23cc06c6bed",
"status": "affected",
"version": "7f4399ba405b6201fb318b43091703a34b1489ab",
"versionType": "git"
},
{
"lessThan": "3907fcb5a439933cf8c10d6dc300bc11eba30de3",
"status": "affected",
"version": "7f4399ba405b6201fb318b43091703a34b1489ab",
"versionType": "git"
},
{
"lessThan": "c0de1a26e6595b0e7969c5b35990a77a2d93104f",
"status": "affected",
"version": "7f4399ba405b6201fb318b43091703a34b1489ab",
"versionType": "git"
},
{
"lessThan": "43b4331ce0cd88ccba425e0702ba35c1a52daccf",
"status": "affected",
"version": "7f4399ba405b6201fb318b43091703a34b1489ab",
"versionType": "git"
},
{
"lessThan": "c960785c8168d0e572101ed921b9be3934ed0bc9",
"status": "affected",
"version": "7f4399ba405b6201fb318b43091703a34b1489ab",
"versionType": "git"
},
{
"lessThan": "f33642224e38d7e0d59336e10e7b4e370b1c4506",
"status": "affected",
"version": "7f4399ba405b6201fb318b43091703a34b1489ab",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/ptp/ptp_qoriq.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.2"
},
{
"lessThan": "5.2",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.240",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.177",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.106",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.23",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.2.*",
"status": "unaffected",
"version": "6.2.10",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.3",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.240",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.177",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.106",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.23",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.2.10",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.3",
"versionStartIncluding": "5.2",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nptp_qoriq: fix memory leak in probe()\n\nSmatch complains that:\ndrivers/ptp/ptp_qoriq.c ptp_qoriq_probe()\nwarn: \u0027base\u0027 from ioremap() not released.\n\nFix this by revising the parameter from \u0027ptp_qoriq-\u003ebase\u0027 to \u0027base\u0027.\nThis is only a bug if ptp_qoriq_init() returns on the\nfirst -ENODEV error path.\nFor other error paths ptp_qoriq-\u003ebase and base are the same.\nAnd this change makes the code more readable."
}
],
"providerMetadata": {
"dateUpdated": "2025-12-30T12:23:40.491Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/46c4993a1514eea3bbc7147d0c81c23cc06c6bed"
},
{
"url": "https://git.kernel.org/stable/c/3907fcb5a439933cf8c10d6dc300bc11eba30de3"
},
{
"url": "https://git.kernel.org/stable/c/c0de1a26e6595b0e7969c5b35990a77a2d93104f"
},
{
"url": "https://git.kernel.org/stable/c/43b4331ce0cd88ccba425e0702ba35c1a52daccf"
},
{
"url": "https://git.kernel.org/stable/c/c960785c8168d0e572101ed921b9be3934ed0bc9"
},
{
"url": "https://git.kernel.org/stable/c/f33642224e38d7e0d59336e10e7b4e370b1c4506"
}
],
"title": "ptp_qoriq: fix memory leak in probe()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2023-54307",
"datePublished": "2025-12-30T12:23:40.491Z",
"dateReserved": "2025-12-30T12:06:44.530Z",
"dateUpdated": "2025-12-30T12:23:40.491Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"nvd": "{\"cve\":{\"id\":\"CVE-2023-54307\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:16:19.867\",\"lastModified\":\"2025-12-30T13:16:19.867\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nptp_qoriq: fix memory leak in probe()\\n\\nSmatch complains that:\\ndrivers/ptp/ptp_qoriq.c ptp_qoriq_probe()\\nwarn: \u0027base\u0027 from ioremap() not released.\\n\\nFix this by revising the parameter from \u0027ptp_qoriq-\u003ebase\u0027 to \u0027base\u0027.\\nThis is only a bug if ptp_qoriq_init() returns on the\\nfirst -ENODEV error path.\\nFor other error paths ptp_qoriq-\u003ebase and base are the same.\\nAnd this change makes the code more readable.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3907fcb5a439933cf8c10d6dc300bc11eba30de3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/43b4331ce0cd88ccba425e0702ba35c1a52daccf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/46c4993a1514eea3bbc7147d0c81c23cc06c6bed\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c0de1a26e6595b0e7969c5b35990a77a2d93104f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c960785c8168d0e572101ed921b9be3934ed0bc9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f33642224e38d7e0d59336e10e7b4e370b1c4506\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…