CVE-2026-68348: ASoC: tas2781: bound firmware description string parsing

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081038-CVE-2026-68348-dd09@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

ASoC: tas2781: bound firmware description string parsing

The TAS2781 firmware parser reads several variable-length description
strings with strlen() before checking that the string terminator is
present inside the firmware blob. A malformed firmware image without a
NUL terminator can therefore make the parser walk past the end of the
firmware buffer before the later size checks run.

Add a small bounded string-length helper and use it for all description
fields that are parsed from the firmware buffer. Keep the existing size
checks for the fixed bytes that follow each string.

The Linux kernel CVE team has assigned CVE-2026-68348 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.5 with commit 915f5eadebd29ba185ac506766a90120153b7e14 and fixed in 6.6.148 with commit 3ddb0d3e36507615e5ef010a879357a54870adf5
	Issue introduced in 6.5 with commit 915f5eadebd29ba185ac506766a90120153b7e14 and fixed in 6.12.101 with commit 0ec45e80a82785ee147516fdecf5c93707dec119
	Issue introduced in 6.5 with commit 915f5eadebd29ba185ac506766a90120153b7e14 and fixed in 6.18.42 with commit 41ae2b7d37c3dd82302167496836cca9f0328374
	Issue introduced in 6.5 with commit 915f5eadebd29ba185ac506766a90120153b7e14 and fixed in 7.1.6 with commit e75ef37d83c90b09bedb601624b47e168202b226
	Issue introduced in 6.5 with commit 915f5eadebd29ba185ac506766a90120153b7e14 and fixed in 7.2-rc5 with commit bc889dfcea9294a1eae7f8e2f3573a90764ae4d0

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-2026-68348
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/codecs/tas2781-fmwlib.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/3ddb0d3e36507615e5ef010a879357a54870adf5
	https://git.kernel.org/stable/c/0ec45e80a82785ee147516fdecf5c93707dec119
	https://git.kernel.org/stable/c/41ae2b7d37c3dd82302167496836cca9f0328374
	https://git.kernel.org/stable/c/e75ef37d83c90b09bedb601624b47e168202b226
	https://git.kernel.org/stable/c/bc889dfcea9294a1eae7f8e2f3573a90764ae4d0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.