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 E964315B554 for ; Thu, 27 Feb 2025 02:13:35 +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=1740622416; cv=none; b=c6XW3dsfva5IC1VRbU3LmmR2xWdhLZArj+RNn6dyRM7WUOX8v0VYEF5rUiGDWOYUf+QXu0QceY16LfgVMKBAGI9y0nbDuHorSvJh2DygIObbNZrCz7Hjbq+rjHC/D5zqZRS9/U5oilR0pwgSbg8vmu5JJV5XI38wNFZn1xPfkY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622416; c=relaxed/simple; bh=iOb/WCIOjNwGIgVPOkNrPGiuYaJ6amBzF02ZAFj914Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uXODhudsJnT1dpzQoDtkT/iR6eHW+le1qrxPFCfM5WlideUoVQfpzaDTfEEYwPnHD1gyrQCrmexOhotIsFq560RcvCwt2rzMwbM7cpk+iPU99w6NSITEts1z4fa6YFENp/hybQAAvBNqntTDU1rrP0Yt5N6haNHesueQJCfl9YU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s91ATCdr; 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="s91ATCdr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9F01C4CED6; Thu, 27 Feb 2025 02:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622415; bh=iOb/WCIOjNwGIgVPOkNrPGiuYaJ6amBzF02ZAFj914Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=s91ATCdrJreF0pF9V4V3jLSK25J+ieeKve6NT0DwXnp7Tn9M6lyOiXYArJFeTtiGQ yV9cbeoxukrjTHxsU0jwmN3n5SgLmyl32Y9qSi0VEBdAaIqpc3V9R9yc2xQnRIKnOE fbNK/+FLFShTy8nn1JOUo6bC5hQ9W1jpmeLCgAEs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58016: safesetid: check size of policy writes Date: Wed, 26 Feb 2025 18:11:10 -0800 Message-ID: <2025022657-CVE-2024-58016-115b@gregkh> X-Mailer: git-send-email 2.48.1 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=2271; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iOb/WCIOjNwGIgVPOkNrPGiuYaJ6amBzF02ZAFj914Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T2787dP6ai//Cn82ud5PbV5T7dxC1DMkrs3L+WrBZ LBxU1hiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkzmyG+dW7vCfoVP5j6zjQ XxxrnvG1wfr2ZIYFCy381u/mXmnhn/vsTt9+3UfiU45XAAA= 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: safesetid: check size of policy writes syzbot attempts to write a buffer with a large size to a sysfs entry with writes handled by handle_policy_update(), triggering a warning in kmalloc. Check the size specified for write buffers before allocating. [PM: subject tweak] The Linux kernel CVE team has assigned CVE-2024-58016 to this issue. Affected and fixed versions =========================== Fixed in 6.1.129 with commit a0dec65f88c8d9290dfa1d2ca1e897abe54c5881 Fixed in 6.6.78 with commit 96fae5bd1589731592d30b3953a90a77ef3928a6 Fixed in 6.12.14 with commit 36b385d0f2b4c0bf41d491e19075ecd990d2bf94 Fixed in 6.13.3 with commit c71d35676d46090c891b6419f253fb92a1a9f4eb Fixed in 6.14-rc1 with commit f09ff307c7299392f1c88f763299e24bc99811c7 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-58016 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: security/safesetid/securityfs.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/a0dec65f88c8d9290dfa1d2ca1e897abe54c5881 https://git.kernel.org/stable/c/96fae5bd1589731592d30b3953a90a77ef3928a6 https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94 https://git.kernel.org/stable/c/c71d35676d46090c891b6419f253fb92a1a9f4eb https://git.kernel.org/stable/c/f09ff307c7299392f1c88f763299e24bc99811c7