Skip to contentSkip to conversation

CVE-2026-53082: net: hamradio: 6pack: fix uninit-value in sixpack_receive_buf

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

net: hamradio: 6pack: fix uninit-value in sixpack_receive_buf

sixpack_receive_buf() does not properly skip bytes with TTY error flags. The while loop iterates through the flags buffer but never advances the data pointer (cp), and passes the original count (including error bytes) to sixpack_decode(). This causes sixpack_decode() to process bytes that should have been skipped due to TTY errors. The TTY layer does not guarantee that cp[i] holds a meaningful value when fp[i] is set, so passing those positions to sixpack_decode() results in KMSAN reporting an uninit-value read.

Fix this by processing bytes one at a time, advancing cp on each iteration, and only passing valid (non-error) bytes to sixpack_decode(). This matches the pattern used by slip_receive_buf() and mkiss_receive_buf() for the same purpose.

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

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

	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.258 with commit 1d3abf0c3ddeefc6f6d913aa129acc06fce8240a
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.209 with commit d4cceb5184538613572fb79319453f281b1eeacb
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.175 with commit 2951656b0de00153f2687f3a093890bce72b6215
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.141 with commit e9cf4018d74237d142cd66243c821d13593270f0
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.91 with commit d9ce2a4b679122397d7f35bad7be46913ad1ca80
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.33 with commit 987af7625ceb1ee59d70eb0abd7af11c75e45d79
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.10 with commit 578f3aba427c938fecfa0d8c83d9acb213a9b24a
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1 with commit bf9a38803b2626b01cc769aaf13485d8650f576f

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-53082

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:
drivers/net/hamradio/6pack.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/1d3abf0c3ddeefc6f6d913aa129acc06fce8240a
	https://git.kernel.org/stable/c/d4cceb5184538613572fb79319453f281b1eeacb
	https://git.kernel.org/stable/c/2951656b0de00153f2687f3a093890bce72b6215
	https://git.kernel.org/stable/c/e9cf4018d74237d142cd66243c821d13593270f0
	https://git.kernel.org/stable/c/d9ce2a4b679122397d7f35bad7be46913ad1ca80
	https://git.kernel.org/stable/c/987af7625ceb1ee59d70eb0abd7af11c75e45d79
	https://git.kernel.org/stable/c/578f3aba427c938fecfa0d8c83d9acb213a9b24a
	https://git.kernel.org/stable/c/bf9a38803b2626b01cc769aaf13485d8650f576f