Buffer overflow in Linux

CVE-2022-50050

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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.002, 14.2th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 29c8e4398f02adacd429c7847dacc8aea5a0c2f1, 5.10, 0
  • Linux Kernel — versions 6.0

Weakness classification (CWE)

References