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 F33C014A4C6 for ; Mon, 13 May 2024 10:29:46 +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=1715596187; cv=none; b=j/8PowFInv0PHCODx03lF8miSFTvqjcZHJMPCPYrsiWwj4VNAFqMg+DHptlreAiI3m2c8QQsE7ALOuzIp4VxgSuxKUGLW4WSQhQNCOvSHCyQVtaZY/4a36bCf9hiKzUpIhNzBuPaYBisSd1qsvJ/LXMij9BcGRjddC94SeAoe+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715596187; c=relaxed/simple; bh=YnVo7fs46ZgFB9rsKGDpOZzr7uDYzPSLTHc9DhexBmc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O0upGN1mKfHxgNz0Hbl3h4BEGs3N/TLc5Xvsuj6fPnlDaH6AsD7qFA0ObGakSp4zGOTFnjHLsCz1ixgQyYRWi3YTGTU7k3UaDsKJYbZhaGqekdeXsv1w1C1GF0VEiZQALqeIjgYRKkhHv5GkXlak4MpiTOlunR+r9qN20e6P2uE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ocMiOlg9; 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="ocMiOlg9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 619E6C113CC; Mon, 13 May 2024 10:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715596186; bh=YnVo7fs46ZgFB9rsKGDpOZzr7uDYzPSLTHc9DhexBmc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ocMiOlg95fqJUiyLbFIBCryGEy+JaCKXr1SqA213Ym9tfm4cpjnJDPymoy8QqhhCy 4Gq+KWrScjSb7vWjrt0jiVYxInsrC5uakYDXHRjco8LXCJSSVlXQQpVAHDakj1bTpr 0GJxtliwuzd+tuaAPnbYSXMbfr0eaX60Vcb4IE6E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27401: firewire: nosy: ensure user_length is taken into account when fetching packet contents Date: Mon, 13 May 2024 12:29:42 +0200 Message-ID: <2024051341-CVE-2024-27401-e31d@gregkh> X-Mailer: git-send-email 2.45.0 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=1735; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YnVo7fs46ZgFB9rsKGDpOZzr7uDYzPSLTHc9DhexBmc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmOr6flX7R+N/NQkOe0dbZrNl3nPPNH2fBV0JUPZTERe 9+yP3c36YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ5K9gmM0e/tM6bmJB0gzp 1du8KxbVZxj9MWFYcN2l7Nkv1dd18q4il6ffzzqaxiqZBgA= 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: firewire: nosy: ensure user_length is taken into account when fetching packet contents Ensure that packet_buffer_get respects the user_length provided. If the length of the head packet exceeds the user_length, packet_buffer_get will now return 0 to signify to the user that no data were read and a larger buffer size is required. Helps prevent user space overflows. The Linux kernel CVE team has assigned CVE-2024-27401 to this issue. Affected and fixed versions =========================== Fixed in 6.9 with commit 38762a0763c1 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-2024-27401 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/firewire/nosy.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/38762a0763c10c24a4915feee722d7aa6e73eb98