From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7084A315D30 for ; Wed, 24 Dec 2025 10:35:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572544; cv=none; b=HpTDHQfBLkqy/pionV0UBt+KX03X+STgHAQQFcDfc0VW01WwkOMeshx5SeFy42ppT41RKB7+qgnbK+FS7mdY5Vk23HG7p+vZQxA+zwcIL5pmu6R7ID6G//ByMediokkBxDTrqvz7hVdplhrnuiXgROJo2oDzF9JD65XVzB4hM7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572544; c=relaxed/simple; bh=f0q6avBNGP1WD3ZQmhQV2No1+ppyUA903FOhQ2e61B4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=erTRGRd7f9PUV99P8HcrsAUToBA6vYNdbo4W+YJRhwAJ2YJ0onknfHetGu2sK/T95WOyz7ZkeiFoMH4hjmbUkYVYdSlwDyyKGfhXt9Ibt/HguapTv1YYJmpy4ZQyGP+jKKkKVKBLTf+ZMIl4yFVTRrjOvmoxZoG3zNtSX7qejPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KwoJXQwo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KwoJXQwo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF120C16AAE; Wed, 24 Dec 2025 10:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572544; bh=f0q6avBNGP1WD3ZQmhQV2No1+ppyUA903FOhQ2e61B4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=KwoJXQwo/UvIz470kM2Ci8KACR9l/R8SvWkgQj9caGdiEs/z7qdyNbvB9S3WbjFYs 3UJrzpXVrK5kfUISQO2EcDm2g4ezO56GN74tQxtYub3pDA6vEhboLf4WuDa0oRpKFM ndSwnl8RZ5P03OQrr7yAQuJFGihxD09CQBECq7hQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68362: wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb() Date: Wed, 24 Dec 2025 11:35:07 +0100 Message-ID: <2025122458-CVE-2025-68362-e4d6@gregkh> X-Mailer: git-send-email 2.52.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=2837; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YrubH/bsJFC27euqEcMvAbQeyM0bKIh0BMVYDxWOJcM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneBy896b7NLJlm13ghUFFzTfv81g5hq4Bmx7nPZjhkn 5AuCvzXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPpdWKYX3jrcPP6svSb353F Vl7YOIf7qsC5iQzzK90ZjFoDTLPCxc4XFJ653Oz358RLAA== 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: wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb() The rtl8187_rx_cb() calculates the rx descriptor header address by subtracting its size from the skb tail pointer. However, it does not validate if the received packet (skb->len from urb->actual_length) is large enough to contain this header. If a truncated packet is received, this will lead to a buffer underflow, reading memory before the start of the skb data area, and causing a kernel panic. Add length checks for both rtl8187 and rtl8187b descriptor headers before attempting to access them, dropping the packet cleanly if the check fails. The Linux kernel CVE team has assigned CVE-2025-68362 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit 6f7853f3cbe457067e9fe05461f56c7ea4ac488c and fixed in 6.12.63 with commit 4758770a673c60d8f615809304d72e1432fa6355 Issue introduced in 2.6.27 with commit 6f7853f3cbe457067e9fe05461f56c7ea4ac488c and fixed in 6.17.13 with commit 638d4148e166d114a4cd7becaae992ce1a815ed8 Issue introduced in 2.6.27 with commit 6f7853f3cbe457067e9fe05461f56c7ea4ac488c and fixed in 6.18.2 with commit 5ebf0fe7eaef9f6173a4c6ea77c5353e21645d15 Issue introduced in 2.6.27 with commit 6f7853f3cbe457067e9fe05461f56c7ea4ac488c and fixed in 6.19-rc1 with commit b647d2574e4583c2e3b0ab35568f60c88e910840 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-2025-68362 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/wireless/realtek/rtl818x/rtl8187/dev.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/4758770a673c60d8f615809304d72e1432fa6355 https://git.kernel.org/stable/c/638d4148e166d114a4cd7becaae992ce1a815ed8 https://git.kernel.org/stable/c/5ebf0fe7eaef9f6173a4c6ea77c5353e21645d15 https://git.kernel.org/stable/c/b647d2574e4583c2e3b0ab35568f60c88e910840