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 DD5E4199242 for ; Tue, 16 Jul 2024 11:47:04 +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=1721130425; cv=none; b=pgByMuR6LRmP2p1q18BsZHrLXKPjeRN2b7Llu94AzZ++uJspLUUXpp9L1p8JH7KFkTcuUYKRTgEn8HJeUPMWvziExur2DPSXfa90WveEGYNtVN//3oxzvAQyRbwhL/fstaqLp3d0txQGwvKnscLIYx8x2L+aLY+sQK0/QvnY8Bo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130425; c=relaxed/simple; bh=dct++7cmN7NVT29hPTGbT6gJyT7Xm+BaK0rG4rhx57k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dzlCev1ItzxLnr341WwtfEYCfQHvRAxwg6/RV1gdlYajhoAMgpnb0qeL8DwJFrT+uk0bSPuqHcdzO1xjD2Gh+aaIngL2pQAzB04wyORZb/uuNQj/WPtRxIvo0S45qlcfm72AhPae3HIP5PoT4itDu3NIZWL8J4FzV92ZOYHKSog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q1IU/pLc; 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="q1IU/pLc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14E91C116B1; Tue, 16 Jul 2024 11:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130424; bh=dct++7cmN7NVT29hPTGbT6gJyT7Xm+BaK0rG4rhx57k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=q1IU/pLc/MgYFAW/N0DkToL0kHhomg/WCOQgbw9plZO1Mc9h+dihn9XgJ99wotKqb rtnNfspth7iE+zzjd2pqePiEJhmsSyGPwXdDc4tehptbdTx9l5x+/kU4JGCCWrfLwD 2H0y/dCefuR51yHLUBCBUO2isQc5wRHzPu/UgCAU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48816: SUNRPC: lock against ->sock changing during sysfs read Date: Tue, 16 Jul 2024 13:46:08 +0200 Message-ID: <2024071648-CVE-2022-48816-e2a3@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2105; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dct++7cmN7NVT29hPTGbT6gJyT7Xm+BaK0rG4rhx57k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYnOkfGUX7T5z/HyQzdOo9ccYnzkcs5jyVr51lWLn6 vxDy0syOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAifBEMC/rmv2H8V5t8MeBA xILyRw+fuX07xsIwVyhywr/CWfpGpkJX9ny6wW1bt7c5EgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: SUNRPC: lock against ->sock changing during sysfs read ->sock can be set to NULL asynchronously unless ->recv_mutex is held. So it is important to hold that mutex. Otherwise a sysfs read can trigger an oops. Commit 17f09d3f619a ("SUNRPC: Check if the xprt is connected before handling sysfs reads") appears to attempt to fix this problem, but it only narrows the race window. The Linux kernel CVE team has assigned CVE-2022-48816 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit a8482488a7d6 and fixed in 5.16.10 with commit 9482ab4540f5 Issue introduced in 5.14 with commit a8482488a7d6 and fixed in 5.17 with commit b49ea673e119 Issue introduced in 5.10.67 with commit 21a2be1a5145 Issue introduced in 5.13.19 with commit 77876473912d 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-2022-48816 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/sunrpc/sysfs.c net/sunrpc/xprtsock.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/9482ab4540f5bcc869b44c067ae99b5fca16bd07 https://git.kernel.org/stable/c/b49ea673e119f59c71645e2f65b3ccad857c90ee