CVE-2022-50540

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

State
Published
Severity
Not scored
Published
Oct 7, 2025
Updated
May 11, 2026
Reserved
Oct 7, 2025

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 03de6b273805b3c552ff158f8688555937375926 to before f1dd45a6585a1689e1e8906b3f9e302b9d40c715Affected
  • 03de6b273805b3c552ff158f8688555937375926 to before 7490274b41a432824f7df5071ace3df2ab59caa7Affected
  • 03de6b273805b3c552ff158f8688555937375926 to before 7c8765308371be30f50c1b5b97618b731514b207Affected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 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.