Bug 1220510 (CVE-2021-46965)

Summary: VUL-0: CVE-2021-46965: kernel-source,kernel-source-azure,kernel-source-rt: mtd: physmap: physmap-bt1-rom: unintentional stack overread
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Kernel Bugs <kernel-bugs>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P5 - None CC: carlos.lopez
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/395371/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-46965:4.4:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-02-28 08:22:05 UTC
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")

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-46965
https://www.cve.org/CVERecord?id=CVE-2021-46965
https://git.kernel.org/stable/c/34ec706bf0b7c4ca249a729c1bcb91f706c7a7be
https://git.kernel.org/stable/c/4d786870e3262ec098a3b4ed10b895176bc66ecb
https://git.kernel.org/stable/c/4e4ebb827bf09311469ffd9d0c14ed40ed9747aa
https://git.kernel.org/stable/c/683313993dbe1651c7aa00bb42a041d70e914925
Comment 1 Carlos López 2024-02-28 08:23:01 UTC
We have b3e79e7682e0 ("mtd: physmap: Add Baikal-T1 physically mapped ROM support") in cve/linux-5.14, SLE15-SP6, stable and master, all of which have the fix. Closing.