Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2022-49518
PUBLISHED
More InfoOfficial Page
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
View Known Exploited Vulnerability (KEV) details
Published At-26 Feb, 2025 | 02:13
Updated At-04 May, 2025 | 08:39
Rejected At-
▼CVE Numbering Authority (CNA)
ASoC: SOF: ipc3-topology: Correct get_control_data for non bytes payload

In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-topology: Correct get_control_data for non bytes payload It is possible to craft a topology where sof_get_control_data() would do out of bounds access because it expects that it is only called when the payload is bytes type. Confusingly it also handles other types of controls, but the payload parsing implementation is only valid for bytes. Fix the code to count the non bytes controls and instead of storing a pointer to sof_abi_hdr in sof_widget_data (which is only valid for bytes), store the pointer to the data itself and add a new member to save the size of the data. In case of non bytes controls we store the pointer to the chanv itself, which is just an array of values at the end. In case of bytes control, drop the wrong cdata->data (wdata[i].pdata) check against NULL since it is incorrect and invalid in this context. The data is pointing to the end of cdata struct, so it should never be null.

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • sound/soc/sof/ipc3-topology.c
Default Status
unaffected
Versions
Affected
  • From 7006d20e5e9d25c079a82e2bc0ea7e292fdea6e6 before 896b03bb7c7010042786cfae2115083d4c241dd3 (git)
  • From 7006d20e5e9d25c079a82e2bc0ea7e292fdea6e6 before a962890a5a3cce903ff7c7a19fadee63ed9efdc7 (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • sound/soc/sof/ipc3-topology.c
Default Status
affected
Versions
Affected
  • 5.18
Unaffected
  • From 0 before 5.18 (semver)
  • From 5.18.3 through 5.18.* (semver)
  • From 5.19 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/896b03bb7c7010042786cfae2115083d4c241dd3
N/A
https://git.kernel.org/stable/c/a962890a5a3cce903ff7c7a19fadee63ed9efdc7
N/A
Hyperlink: https://git.kernel.org/stable/c/896b03bb7c7010042786cfae2115083d4c241dd3
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/a962890a5a3cce903ff7c7a19fadee63ed9efdc7
Resource: N/A
Details not found