clk: bcm: rpi: Prevent out-of-bounds access
In the Linux kernel, the following vulnerability has been resolved: clk: bcm: rpi: Prevent out-of-bounds access The while loop in raspberrypi_discover_clocks() relies on the assumption that the id of the last clock element is zero. Because this data comes from the Videocore firmware and it doesn't guarantuee such a behavior this could lead to out-of-bounds access. So fix this by providing a sentinel element.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.142, 5.15.66, 5.19.8
- CVEs
- CVE-2022-49946
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 18:12 UTC · Revision 1
Source evidence
clk: bcm: rpi: Prevent out-of-bounds access
core-osv · Original sourcePublished 18 Jun 2025, 11:00 UTC
In the Linux kernel, the following vulnerability has been resolved: clk: bcm: rpi: Prevent out-of-bounds access The while loop in raspberrypi_discover_clocks() relies on the assumption that the id of the last clock element is zero. Because this data comes from the Videocore firmware and it doesn't guarantuee such a behavior this could lead to out-of-bounds access. So fix this by providing a sentinel element.
osv:CVE-2022-49946
Kernel
Fixed versions: 5.10.142, 5.15.66, 5.19.8
Complete source record
{
"id": "c74f289895b530850c13fab28a351acbb086da2a46ad8b2fbbe826f5ff6eabf3",
"url": "https://osv.dev/vulnerability/CVE-2022-49946",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "clk: bcm: rpi: Prevent out-of-bounds access",
"summary": "In the Linux kernel, the following vulnerability has been resolved: clk: bcm: rpi: Prevent out-of-bounds access The while loop in raspberrypi_discover_clocks() relies on the assumption that the id of the last clock element is zero. Because this data comes from the Videocore firmware and it doesn't guarantuee such a behavior this could lead to out-of-bounds access. So fix this by providing a sentinel element.",
"evidence": "osv:CVE-2022-49946",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.142",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.66",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49946",
"aliases": [
"CVE-2022-49946"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "93d2725affd65686792f4b57e49ef660f3c8c0f9"
},
{
"fixed": "fcae47b2d23c81603b01f56cf8db63ed64599d34"
},
{
"fixed": "ff0b144d4b0a9fbd6efe4d2c0a4b6c9bae2138d2"
},
{
"fixed": "c8b04b731d43366824841ebdca4ac715f95e0ea4"
},
{
"fixed": "bc163555603e4ae9c817675ad80d618a4cdbfa2d"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49946.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.9.0"
},
{
"fixed": "5.10.142"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.66"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.19.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49946.json"
}
}
],
"modified": "2026-10-28T02:30:47.828692753Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/bc163555603e4ae9c817675ad80d618a4cdbfa2d",
"https://git.kernel.org/stable/c/c8b04b731d43366824841ebdca4ac715f95e0ea4",
"https://git.kernel.org/stable/c/fcae47b2d23c81603b01f56cf8db63ed64599d34",
"https://git.kernel.org/stable/c/ff0b144d4b0a9fbd6efe4d2c0a4b6c9bae2138d2",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49946.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49946",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49946.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49946",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 515855,
"published_at": "2025-06-18T11:00:07.966+00:00"
}