{"id":"CVE-2022-49946","state":"PUBLISHED","title":"clk: bcm: rpi: Prevent out-of-bounds access","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: bcm: rpi: Prevent out-of-bounds access\n\nThe while loop in raspberrypi_discover_clocks() relies on the assumption\nthat the id of the last clock element is zero. Because this data comes\nfrom the Videocore firmware and it doesn't guarantuee such a behavior\nthis could lead to out-of-bounds access. So fix this by providing\na sentinel element.","publishedAt":"2025-06-18T11:00:07.966Z","updatedAt":"2026-05-11T19:09:44.094Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"fcae47b2d23c81603b01f56cf8db63ed64599d34","versionType":"git"},{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"ff0b144d4b0a9fbd6efe4d2c0a4b6c9bae2138d2","versionType":"git"},{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"c8b04b731d43366824841ebdca4ac715f95e0ea4","versionType":"git"},{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"bc163555603e4ae9c817675ad80d618a4cdbfa2d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/bcm/clk-raspberrypi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.142","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.66","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.8","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/bcm/clk-raspberrypi.c"]}],"references":["https://git.kernel.org/stable/c/fcae47b2d23c81603b01f56cf8db63ed64599d34","https://git.kernel.org/stable/c/ff0b144d4b0a9fbd6efe4d2c0a4b6c9bae2138d2","https://git.kernel.org/stable/c/c8b04b731d43366824841ebdca4ac715f95e0ea4","https://git.kernel.org/stable/c/bc163555603e4ae9c817675ad80d618a4cdbfa2d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49946.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49946","state":"PUBLISHED","datePublished":"2025-06-18T11:00:07.966Z","dateUpdated":"2026-05-11T19:09:44.094Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.381Z"},"containers":{"cna":{"title":"clk: bcm: rpi: Prevent out-of-bounds access","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: bcm: rpi: Prevent out-of-bounds access\n\nThe while loop in raspberrypi_discover_clocks() relies on the assumption\nthat the id of the last clock element is zero. Because this data comes\nfrom the Videocore firmware and it doesn't guarantuee such a behavior\nthis could lead to out-of-bounds access. So fix this by providing\na sentinel element."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"fcae47b2d23c81603b01f56cf8db63ed64599d34","versionType":"git"},{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"ff0b144d4b0a9fbd6efe4d2c0a4b6c9bae2138d2","versionType":"git"},{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"c8b04b731d43366824841ebdca4ac715f95e0ea4","versionType":"git"},{"version":"93d2725affd65686792f4b57e49ef660f3c8c0f9","status":"affected","lessThan":"bc163555603e4ae9c817675ad80d618a4cdbfa2d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/bcm/clk-raspberrypi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.142","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.66","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.8","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/bcm/clk-raspberrypi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fcae47b2d23c81603b01f56cf8db63ed64599d34"},{"url":"https://git.kernel.org/stable/c/ff0b144d4b0a9fbd6efe4d2c0a4b6c9bae2138d2"},{"url":"https://git.kernel.org/stable/c/c8b04b731d43366824841ebdca4ac715f95e0ea4"},{"url":"https://git.kernel.org/stable/c/bc163555603e4ae9c817675ad80d618a4cdbfa2d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:09:44.094Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.10.142"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.15.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.19.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}