# CVE-2021-46965: mtd: physmap: physmap-bt1-rom: Fix unintentional stack access

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-02-27T18:47:03.022Z
- Modified: 2026-06-17T04:16:00.683Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mtd: physmap: physmap-bt1-rom: Fix unintentional stack access

Cast &data to (char *) in order to avoid unintentionally accessing
the stack.

Notice that data is of type u32, so any increment to &data
will be in the order of 4-byte chunks, and this piece of code
is actually intended to be a byte offset.

Addresses-Coverity-ID: 1497765 ("Out-of-bounds access")

(As written by CVE List.)

## Affected

- Linux Linux: from b3e79e7682e075326df8041b826b03453acacd0a before 34ec706bf0b7c4ca249a729c1bcb91f706c7a7be; from b3e79e7682e075326df8041b826b03453acacd0a before 4e4ebb827bf09311469ffd9d0c14ed40ed9747aa; from b3e79e7682e075326df8041b826b03453acacd0a before 4d786870e3262ec098a3b4ed10b895176bc66ecb; from b3e79e7682e075326df8041b826b03453acacd0a before 683313993dbe1651c7aa00bb42a041d70e914925; 5.10 (not affected: before 5.10; from 5.10.36 up to 5.10.*; from 5.11.20 up to 5.11.*; from 5.12.3 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.10 before 5.10.36; from 5.11 before 5.11.20; from 5.12 before 5.12.3

## References

- <https://git.kernel.org/stable/c/34ec706bf0b7c4ca249a729c1bcb91f706c7a7be> (patch)
- <https://git.kernel.org/stable/c/4e4ebb827bf09311469ffd9d0c14ed40ed9747aa> (patch)
- <https://git.kernel.org/stable/c/4d786870e3262ec098a3b4ed10b895176bc66ecb> (patch)
- <https://git.kernel.org/stable/c/683313993dbe1651c7aa00bb42a041d70e914925> (patch)

## Sources

- CVE List: [CVE-2021-46965](https://www.cve.org/CVERecord?id=CVE-2021-46965), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-46965](https://nvd.nist.gov/vuln/detail/CVE-2021-46965), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46965 · Whole record: https://cve.day/CVE-2021-46965.json · Rebuilt by cve.day 2026-11-25T22:58:08.590Z
