CVE-2021-46965

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

State
Published
Severity
Not scored
Published
Feb 27, 2024
Updated
May 11, 2026
Reserved
Feb 27, 2024

Read the record on cve.org

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")

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b3e79e7682e075326df8041b826b03453acacd0a to before 34ec706bf0b7c4ca249a729c1bcb91f706c7a7beAffected
  • b3e79e7682e075326df8041b826b03453acacd0a to before 4e4ebb827bf09311469ffd9d0c14ed40ed9747aaAffected
  • b3e79e7682e075326df8041b826b03453acacd0a to before 4d786870e3262ec098a3b4ed10b895176bc66ecbAffected
  • b3e79e7682e075326df8041b826b03453acacd0a to before 683313993dbe1651c7aa00bb42a041d70e914925Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.36 through 5.10.*Not affected
  • 5.11.20 through 5.11.*Not affected
  • 5.12.3 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.