Bug 2402204 (CVE-2022-50540) - CVE-2022-50540 kernel: dmaengine: qcom-adm: fix wrong sizeof config in slave_config
Summary: CVE-2022-50540 kernel: dmaengine: qcom-adm: fix wrong sizeof config in slave_...
Keywords:
Status: NEW
Alias: CVE-2022-50540
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-07 16:02 UTC by OSIDB Bzimport
Modified: 2025-10-24 20:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-10-07 16:02:42 UTC
In the Linux kernel, the following vulnerability has been resolved:

dmaengine: qcom-adm: fix wrong sizeof config in slave_config

Fix broken slave_config function that uncorrectly compare the
peripheral_size with the size of the config pointer instead of the size
of the config struct. This cause the crci value to be ignored and cause
a kernel panic on any slave that use adm driver.

To fix this, compare to the size of the struct and NOT the size of the
pointer.


Note You need to log in before you can comment on or make changes to this bug.