[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025061846-CVE-2022-50052-d9f4@gregkh>
Date: Wed, 18 Jun 2025 13:01:57 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50052: ASoC: Intel: avs: Fix potential buffer overflow by snprintf()
From: Greg Kroah-Hartman <gregkh@...nel.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.
The Linux kernel CVE team has assigned CVE-2022-50052 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit f1b3b320bd6519b16e3480f74f2926d106e3bcba and fixed in 5.19.4 with commit 840311a09f75632b9d41fbc1cd5c7aea94ce5f7e
Issue introduced in 5.19 with commit f1b3b320bd6519b16e3480f74f2926d106e3bcba and fixed in 6.0 with commit ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50052
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
sound/soc/intel/avs/pcm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/840311a09f75632b9d41fbc1cd5c7aea94ce5f7e
https://git.kernel.org/stable/c/ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00
Powered by blists - more mailing lists