CVE-2022-50052

ASoC: Intel: avs: Fix potential buffer overflow by snprintf()

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

Description

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

ASoC: Intel: avs: 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 a buffer overflow (although it's unrealistic).

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f1b3b320bd6519b16e3480f74f2926d106e3bcba to before 840311a09f75632b9d41fbc1cd5c7aea94ce5f7eAffected
  • f1b3b320bd6519b16e3480f74f2926d106e3bcba to before ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00Affected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 5.19.4 through 5.19.*Not affected
  • 6.0 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.