Bug 1223920 (CVE-2022-48696) - VUL-0: CVE-2022-48696: kernel: regmap: spi: Reserve space for register address/padding
Summary: VUL-0: CVE-2022-48696: kernel: regmap: spi: Reserve space for register addres...
Status: RESOLVED FIXED
Alias: CVE-2022-48696
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/404312/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-48696:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-06 08:37 UTC by SMASH SMASH
Modified: 2024-06-10 12:27 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.