CVE-2022-50051

ASoC: SOF: debug: 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: 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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 5b10b62989219aa527ee4fa555d1995a3b70981b to before b318b9dd2ac67f39d0338ce563879d1f59a0347aAffected
  • 5b10b62989219aa527ee4fa555d1995a3b70981b to before a67971a17604ae7de278fb09243432459afc51e1Affected
  • 5b10b62989219aa527ee4fa555d1995a3b70981b to before 1eb123ce985e6cf302ac6e3f19862d132d86fa8fAffected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.15.63 through 5.15.*Not 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.