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 955563AEB29 for ; Mon, 10 Aug 2026 12:02:54 +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=1786363376; cv=none; b=qlXnpHNLuUXkgAr9liyVmnJ1MhD8iMWkf6S3/9DBnsaf9JEVQSlzrm2mLVeyErzLxv1WegA20J5RPyvQSuar4XBb1Bao2uB4pGhE4tae1oDY6MTEdJQgcw4yottsYKvKL65B/PSi89JiCnb7dk+Lz+CHqNvNCOMDzw77US85Ky0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363376; c=relaxed/simple; bh=aHmfsGAknR0nHCi7sU/OGfdfNBt31MjdPK8nTMIFlbU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BfJOZ77hKzQzlIF5NoihPIFzVToIrepLxrIN3wGc9IjzGTOAApsqYhdmzrqf+t1IbZw9Dd3SQySosZNr7JravuNCApBDs+QKCAfMCkL4JexX2lpmwmOAO/x8+UwvsguHEXKT7/8FGvzfGqfDq8S7UpPWrmvaMb3+nlRSV8BZ6sY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VsOAmZoP; 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="VsOAmZoP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3AB61F000E9; Mon, 10 Aug 2026 12:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363374; bh=twC42/h/d3tjV1zsv/eDJBM+pp99clGHGNadQQnc42I=; h=From:To:Cc:Subject:Date:Reply-To; b=VsOAmZoPgcpvkp6/q6PYjA5HWwSCKCFnSj1WC1q+xr9WzYvjH9lIJYkkyT9mPewXX ZoqGf8Ixs+/W/IWUO5UYEpq7ZgGTbEedNVPBx7u4d7LrGsBGf8TPdWPSXKPA6I5+SD ziB9sm0QONkyv5y9GzFb6PT85Nk9SLt5lS2RCqdM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68137: net/x25: fix use-after-free in x25_kill_by_neigh() Date: Mon, 10 Aug 2026 13:57:34 +0200 Message-ID: <2026081059-CVE-2026-68137-716b@gregkh> X-Mailer: git-send-email 2.55.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=4218; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=no+JdiEzYhpfRzARX1ZJ2HI7Oax8HSvrlWyQpbsGOzc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe7oj/DYqKC56L17ySvT0ntN6Zq1S3itOzNjDsC9Da pWdRoduRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEq4thwb61UwJ9FQ5v6V9W v6ZkaY7FYZY+A4YFm+vtZJJPfF+slXWEUb0gWT751tH1AA== 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: net/x25: fix use-after-free in x25_kill_by_neigh() x25_kill_by_neigh() walks the global X.25 socket list looking for sockets attached to a terminating neighbour. x25_list_lock protects list membership while the lookup is in progress, but it does not pin a socket's lifetime after the lock is dropped. The function currently drops x25_list_lock before calling lock_sock(s). A concurrent close can run x25_release(), remove the same socket from x25_list, and drop the last socket reference in that window. The neighbour teardown path can then lock or inspect a freed struct sock/struct x25_sock. Take sock_hold(s) while x25_list_lock still proves that the list entry is live, then drop the temporary reference after the socket has been locked, rechecked, and released. Recheck x25_sk(s)->neighbour after lock_sock(), because another path may have disconnected the socket before this path acquired the socket lock. Restart the list walk after each disconnect because the list lock was dropped and the previous iterator state may no longer be valid. A QEMU/KASAN run against origin/master reproduced a slab-use-after-free in x25_kill_by_neigh(). The Linux kernel CVE team has assigned CVE-2026-68137 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 7781607938c8371d4c2b243527430241c62e39c2 and fixed in 6.6.148 with commit 3f4fe26c20c30bd5a2e2583e80685def0b27858c Issue introduced in 5.18 with commit 7781607938c8371d4c2b243527430241c62e39c2 and fixed in 6.12.101 with commit 610678d4be94b619c751572e8a58de705592cd07 Issue introduced in 5.18 with commit 7781607938c8371d4c2b243527430241c62e39c2 and fixed in 6.18.42 with commit ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a Issue introduced in 5.18 with commit 7781607938c8371d4c2b243527430241c62e39c2 and fixed in 7.1.6 with commit 9aabda553184346f74810e2ee1d96920b4612e3f Issue introduced in 5.18 with commit 7781607938c8371d4c2b243527430241c62e39c2 and fixed in 7.2-rc5 with commit 5499e0602d2faafd42c580d25f615903c3fbe11b Issue introduced in 4.9.311 with commit dffc859d1d9560da594e4282091781b8d2715f00 Issue introduced in 4.14.276 with commit 858642789ada1b48630f322e59416ca9fca3e6b7 Issue introduced in 4.19.238 with commit 4c240c5a105557e4546d0836e694868f22fd09b0 Issue introduced in 5.4.189 with commit 9acf05b4e7b55fdb712ef7b331dbce5bcd391d0f Issue introduced in 5.10.110 with commit 5c94b6205e87411dbe9dc1ca088eb36b8837fb47 Issue introduced in 5.15.33 with commit 409570a619c1cda2e0fde6018a256b9e3d3ba0ee Issue introduced in 5.16.19 with commit 4a279d7ee1c65411b4055ecd428b8aa2b1711c1f Issue introduced in 5.17.2 with commit 671529db75e6be777bb1c76aa07c2bdd2992be6d 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-68137 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: net/x25/af_x25.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/3f4fe26c20c30bd5a2e2583e80685def0b27858c https://git.kernel.org/stable/c/610678d4be94b619c751572e8a58de705592cd07 https://git.kernel.org/stable/c/ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a https://git.kernel.org/stable/c/9aabda553184346f74810e2ee1d96920b4612e3f https://git.kernel.org/stable/c/5499e0602d2faafd42c580d25f615903c3fbe11b