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 A714B32E745 for ; Mon, 5 Jan 2026 09:33:37 +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=1767605617; cv=none; b=u8PkVgZg9i8MpvXNKry1GS4v/+vYEp3Jj99MifhLLeJ2G9GMtJe4eWaZFkQPZ1IBd+mBp17zJhnngA3AoTpnrsUk9Mr5rLNcjXkQRZYdHBTZu43EmiLwYyzIAYD3vrw79NKlohfcqhILAsgNooSuezYG3nxwz2wxxIIYIapsIG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767605617; c=relaxed/simple; bh=qs2EB2iUyzoqRz4TgpHBNMAjCMq9mI4zStMRaxsMnf0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UCXgZOwaM/E4AO/zSsmokpLcjqEHbxqN8qCFlRUX1U1MlSnjTECQSKogtT8xWRpvv2YcKae2fzSa6yr612b1nfxmdKvfYHEPbLsvm1IppKlvF2mgMXbd386L3Fw4LvVbpNY7/MDSD/DD8ZYXWxPHrJS9MNjUwkxp07lwZHnzH0A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vo6XqEz3; 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="vo6XqEz3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C25EC116D0; Mon, 5 Jan 2026 09:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767605615; bh=qs2EB2iUyzoqRz4TgpHBNMAjCMq9mI4zStMRaxsMnf0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=vo6XqEz3+K04z8dhYFn0gVlhIjh851FHRFr1sUHhGDmHcWe6luMTy9JceTWtb915d IGVEtXCyy6d6iZGBPyZTrlwsAIA3QYSqFE4N67e8AZMC9M7o08/twq5yDRTV11BWcV jtilWD53puNQJwZr28nVX/hsRGNonHRvituKG9tw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68759: wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring() Date: Mon, 5 Jan 2026 10:32:55 +0100 Message-ID: <2026010550-CVE-2025-68759-8638@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=2706; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=in3b6+Z1YlmLVyBjybQmnVBsq+htsdwXH2hJ1GJ3Mw0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnRrc6yWU7zs6e4dd/x05kTyX5xo5TRJuWp1UFHTSfsM 7pq5SzXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJFGCYzRKd9L7wqWiQc365 yzHmmmXO5ZEKDAvWxy36uDMjccbyPe9lJ70+XLF9c7A7AA== 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: Fix potential memory leaks in rtl8180_init_rx_ring() In rtl8180_init_rx_ring(), memory is allocated for skb packets and DMA allocations in a loop. When an allocation fails, the previously successful allocations are not freed on exit. Fix that by jumping to err_free_rings label on error, which calls rtl8180_free_rx_ring() to free the allocations. Remove the free of rx_ring in rtl8180_init_rx_ring() error path, and set the freed priv->rx_buf entry to null, to avoid double free. The Linux kernel CVE team has assigned CVE-2025-68759 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.25 with commit f653211197f3841f383fa9757ef8ce182c6cf627 and fixed in 6.12.63 with commit ee7db11742b30641f21306105ad27a275e3c61d7 Issue introduced in 2.6.25 with commit f653211197f3841f383fa9757ef8ce182c6cf627 and fixed in 6.17.13 with commit a813a74570212cb5f3a7d3b05c0cb0cd00bace1d Issue introduced in 2.6.25 with commit f653211197f3841f383fa9757ef8ce182c6cf627 and fixed in 6.18.2 with commit c9d1c4152e6d32fa74034464854bee262a60bc43 Issue introduced in 2.6.25 with commit f653211197f3841f383fa9757ef8ce182c6cf627 and fixed in 6.19-rc1 with commit 9b5b9c042b30befc5b37e4539ace95af70843473 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-68759 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/rtl8180/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/ee7db11742b30641f21306105ad27a275e3c61d7 https://git.kernel.org/stable/c/a813a74570212cb5f3a7d3b05c0cb0cd00bace1d https://git.kernel.org/stable/c/c9d1c4152e6d32fa74034464854bee262a60bc43 https://git.kernel.org/stable/c/9b5b9c042b30befc5b37e4539ace95af70843473