# CVE-2022-50050: ASoC: SOF: Intel: hda: 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.32%, higher than 18% of CVEs (2026-11-30)
- Published: 2025-06-18T11:01:50.642Z
- Modified: 2026-06-17T05:22:38.533Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

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

ASoC: SOF: Intel: hda: 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 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 before 6ee1310f4d148dbf04c4159b88afd0b941018903; from 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 before f7915c5614a7ece117ec390f21a410531eac48de; from 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 before 94c1ceb043c1a002de9649bb630c8e8347645982; 5.10 (not affected: before 5.10; 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.10 before 5.15.63; from 5.16 before 5.19.4; 6.0

## References

- <https://git.kernel.org/stable/c/6ee1310f4d148dbf04c4159b88afd0b941018903> (patch)
- <https://git.kernel.org/stable/c/f7915c5614a7ece117ec390f21a410531eac48de> (patch)
- <https://git.kernel.org/stable/c/94c1ceb043c1a002de9649bb630c8e8347645982> (patch)

## Sources

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

---

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