# CVE-2022-50051: ASoC: SOF: debug: Fix potential buffer overflow by snprintf()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-06-18T11:01:51.560Z
- Modified: 2026-11-05T20:17:21.700Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: SOF: debug: Fix potential buffer overflow by snprintf()

snprintf() returns the would-be-filled size when the string overflows
the given buffer size, hence using this value may result in the buffer
overflow (although it's unrealistic).

This patch replaces with a safer version, scnprintf() for papering
over such a potential issue.

(As written by CVE List.)

## Affected

- Linux Linux: from 5b10b62989219aa527ee4fa555d1995a3b70981b before b318b9dd2ac67f39d0338ce563879d1f59a0347a; from 5b10b62989219aa527ee4fa555d1995a3b70981b before a67971a17604ae7de278fb09243432459afc51e1; from 5b10b62989219aa527ee4fa555d1995a3b70981b before 1eb123ce985e6cf302ac6e3f19862d132d86fa8f; 5.11 (not affected: before 5.11; from 5.15.63 up to 5.15.*; from 5.19.4 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.11 before 5.15.63; from 5.16 before 5.19.4; 6.0

## References

- <https://git.kernel.org/stable/c/b318b9dd2ac67f39d0338ce563879d1f59a0347a> (patch)
- <https://git.kernel.org/stable/c/a67971a17604ae7de278fb09243432459afc51e1> (patch)
- <https://git.kernel.org/stable/c/1eb123ce985e6cf302ac6e3f19862d132d86fa8f> (patch)

## Sources

- CVE List: [CVE-2022-50051](https://www.cve.org/CVERecord?id=CVE-2022-50051), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50051](https://nvd.nist.gov/vuln/detail/CVE-2022-50051), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50051 · Whole record: https://cve.day/CVE-2022-50051.json · Rebuilt by cve.day 2026-11-25T22:58:21.029Z
