Bug 1223920 (CVE-2022-48696)

Summary: VUL-0: CVE-2022-48696: kernel: regmap: spi: Reserve space for register address/padding
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: carlos.lopez, gabriel.bertazi
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/404312/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-48696:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-05-06 08:37:03 UTC
In the Linux kernel, the following vulnerability has been resolved:

regmap: spi: Reserve space for register address/padding

Currently the max_raw_read and max_raw_write limits in regmap_spi struct
do not take into account the additional size of the transmitted register
address and padding.  This may result in exceeding the maximum permitted
SPI message size, which could cause undefined behaviour, e.g. data
corruption.

Fix regmap_get_spi_bus() to properly adjust the above mentioned limits
by reserving space for the register address/padding as set in the regmap
configuration.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-48696
https://www.cve.org/CVERecord?id=CVE-2022-48696
https://git.kernel.org/stable/c/15ff1f17847c19174b260bd7dd0de33edcebd45e
https://git.kernel.org/stable/c/f5723cfc01932c7a8d5c78dbf7e067e537c91439
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2022/CVE-2022-48696.mbox
Comment 2 Gabriele Sonnu 2024-06-10 12:27:19 UTC
All done, closing.