Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E7283E5A36 for ; Wed, 27 May 2026 09:25:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779873935; cv=none; b=fkcIOZzB3GW30V11ZYJGAykZrx03N9wc9AughBpvZQCA4144Be8Ra9/5iAGQORsNCN/RdAcf1q1VODo5aeQBERDp0bRz5VtLkwtn0cIskmAknUpdqXtpp2+z+T76lqe/Tzl5aPaqMDSet33vYDrs8Nehc6rxzOWZ7GtXnJ4hhts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779873935; c=relaxed/simple; bh=bgQdHyrv0dp1MEEHcB9oqEJH8EBVtS3Gy/AsZ33hQZw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Mf6A5XcmcC95i4p0zVs9hq+DBHc4A0yjGETTrVHXUlpLsA9vQJURmrr1yO0kIgicdG95hJxhzFE8NTlvHihJv4RRScdFrklYTy4kX0YeEfD5A5dAsfJ75oU9tOydbkl4B1nlgheZIuGG8/csWOajI4LM+A+S7qHPS3YDXBW+ZTs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p0y2kmzI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="p0y2kmzI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 916211F00A3A; Wed, 27 May 2026 09:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779873932; bh=xaBb2zCE7DxxThaQZqp63/HOhDQ4j18HLHR4UjuGapM=; h=From:To:Cc:Subject:Date:Reply-To; b=p0y2kmzIrS5lRfvHfV5+RcCrB39HhruDwoe5Nt90fC/vrMBlI2P7lnQffuWIXzMAi Z8A3SweNekc2+FcEka5ewV9yGVAYGhXJIN2BLGnokO72I9zJ26+YxSMBEFy/BuSAS8 Q5TeKp1J7A6w/AQufA4iwRO1Qt8wutjmcPmXRFn8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45843: slip: bound decode() reads against the compressed packet length Date: Wed, 27 May 2026 11:24:15 +0200 Message-ID: <2026052713-CVE-2026-45843-7efb@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3201; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cuIqiC07av5IByqh/Yf8s3ee0b0Osupmp5L+erH6ptI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliO2yrj6slqBzjEmAXfF63wOPrCkttvsCL79wfXdrS5 Gb0fWZfRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkThrDPO2drYtn/wt5LHJX c35/jlGG89pvfQzz1O+srpAtOfOnXnWNyl4m5g+fdacZAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: slip: bound decode() reads against the compressed packet length slhc_uncompress() parses a VJ-compressed TCP header by advancing a pointer through the packet via decode() and pull16(). Neither helper bounds-checks against isize, and decode() masks its return with & 0xffff so it can never return the -1 that callers test for -- those error paths are dead code. A short compressed frame whose change byte requests optional fields lets decode() read past the end of the packet. The over-read bytes are folded into the cached cstate and reflected into subsequent reconstructed packets. Make decode() and pull16() take the packet end pointer and return -1 when exhausted. Add a bounds check before the TCP-checksum read. The existing == -1 tests now do what they were always meant to. The Linux kernel CVE team has assigned CVE-2026-45843 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.141 with commit 37537e42e6df387398bee85cb85070cc80bb1e10 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.91 with commit 4cefe32639933d652614b0bd50f818f9af4af78f Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.33 with commit 0511ecb00e61bf28e2fec4bb41fcce385c3a3b2d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.10 with commit d42bec6e4f6d6d658be365539400b3314b76b2a7 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1-rc1 with commit 4c1367a2d7aad643a6f87c6931b13cc1a25e8ca7 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-45843 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/slip/slhc.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/37537e42e6df387398bee85cb85070cc80bb1e10 https://git.kernel.org/stable/c/4cefe32639933d652614b0bd50f818f9af4af78f https://git.kernel.org/stable/c/0511ecb00e61bf28e2fec4bb41fcce385c3a3b2d https://git.kernel.org/stable/c/d42bec6e4f6d6d658be365539400b3314b76b2a7 https://git.kernel.org/stable/c/4c1367a2d7aad643a6f87c6931b13cc1a25e8ca7