{"id":"CVE-2021-46965","state":"PUBLISHED","title":"mtd: physmap: physmap-bt1-rom: Fix unintentional stack access","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: physmap: physmap-bt1-rom: Fix unintentional stack access\n\nCast &data to (char *) in order to avoid unintentionally accessing\nthe stack.\n\nNotice that data is of type u32, so any increment to &data\nwill be in the order of 4-byte chunks, and this piece of code\nis actually intended to be a byte offset.\n\nAddresses-Coverity-ID: 1497765 (\"Out-of-bounds access\")","publishedAt":"2024-02-27T18:47:03.022Z","updatedAt":"2026-05-11T13:45:21.294Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"34ec706bf0b7c4ca249a729c1bcb91f706c7a7be","versionType":"git"},{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"4e4ebb827bf09311469ffd9d0c14ed40ed9747aa","versionType":"git"},{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"4d786870e3262ec098a3b4ed10b895176bc66ecb","versionType":"git"},{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"683313993dbe1651c7aa00bb42a041d70e914925","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/maps/physmap-bt1-rom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.36","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.20","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.3","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/maps/physmap-bt1-rom.c"]}],"references":["https://git.kernel.org/stable/c/34ec706bf0b7c4ca249a729c1bcb91f706c7a7be","https://git.kernel.org/stable/c/4e4ebb827bf09311469ffd9d0c14ed40ed9747aa","https://git.kernel.org/stable/c/4d786870e3262ec098a3b4ed10b895176bc66ecb","https://git.kernel.org/stable/c/683313993dbe1651c7aa00bb42a041d70e914925"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:16.371Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/46xxx/CVE-2021-46965.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-46965","state":"PUBLISHED","datePublished":"2024-02-27T18:47:03.022Z","dateUpdated":"2026-05-11T13:45:21.294Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-27T18:42:55.942Z"},"containers":{"cna":{"title":"mtd: physmap: physmap-bt1-rom: Fix unintentional stack access","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: physmap: physmap-bt1-rom: Fix unintentional stack access\n\nCast &data to (char *) in order to avoid unintentionally accessing\nthe stack.\n\nNotice that data is of type u32, so any increment to &data\nwill be in the order of 4-byte chunks, and this piece of code\nis actually intended to be a byte offset.\n\nAddresses-Coverity-ID: 1497765 (\"Out-of-bounds access\")"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"34ec706bf0b7c4ca249a729c1bcb91f706c7a7be","versionType":"git"},{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"4e4ebb827bf09311469ffd9d0c14ed40ed9747aa","versionType":"git"},{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"4d786870e3262ec098a3b4ed10b895176bc66ecb","versionType":"git"},{"version":"b3e79e7682e075326df8041b826b03453acacd0a","status":"affected","lessThan":"683313993dbe1651c7aa00bb42a041d70e914925","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/maps/physmap-bt1-rom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.36","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.20","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.3","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/maps/physmap-bt1-rom.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/34ec706bf0b7c4ca249a729c1bcb91f706c7a7be"},{"url":"https://git.kernel.org/stable/c/4e4ebb827bf09311469ffd9d0c14ed40ed9747aa"},{"url":"https://git.kernel.org/stable/c/4d786870e3262ec098a3b4ed10b895176bc66ecb"},{"url":"https://git.kernel.org/stable/c/683313993dbe1651c7aa00bb42a041d70e914925"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:45:21.294Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.36"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.11.20"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.12.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-46965","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-02-27T19:38:51.925558Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:13:13.079Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/34ec706bf0b7c4ca249a729c1bcb91f706c7a7be","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4e4ebb827bf09311469ffd9d0c14ed40ed9747aa","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4d786870e3262ec098a3b4ed10b895176bc66ecb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/683313993dbe1651c7aa00bb42a041d70e914925","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:17:42.990Z"}}]}}}