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 60346D528 for ; Wed, 4 Sep 2024 19:00:29 +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=1725476429; cv=none; b=QnA21Q/xvNNrmEAt7dOaQMfXNFUaFCumnOqEID1vY37u6ByKboOjANUJPAldZdwiykBLFUCi8mNDVOK5dYn/4/Cr3pBiKO6Nk7Y11lozN+Dq3M2XPajwb4KzWzNKCd9fUQOZnOprASKTeH3Y9cQZ2eZWrGxgzuCNx7dqyNx01fI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725476429; c=relaxed/simple; bh=wLjoesWhmTUw1WpwnMMeq695x0pErvgHTJpF8wGHmXM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rmekcKR8kRTblM9tFyj1cGLx/RISQ/yJegV2rZvUOSRs+dxhL2rpF0LugD7v9jnIqC1rt55B7UIMlCPnQIn80f1TD+XFIatU1kjzW0/u6SGe/hKxF7MoMJhJnwQT6IKrQR4z9h7D+czydgdvgyXBmOT7EWY3QoXOqFvKhza3Yfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VaZ0zq2S; 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="VaZ0zq2S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD1BFC4CEC2; Wed, 4 Sep 2024 19:00:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725476429; bh=wLjoesWhmTUw1WpwnMMeq695x0pErvgHTJpF8wGHmXM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VaZ0zq2SNamo3aUp+Tg2wjEKwu/KaAmXvSC4LIMw0PWDRT7GrVii2RqIKQVfLtyOJ GFgS7IMktFtsIaQcZa1V2rEiPjJ06U2NHEsQp3YxFcF/FYDrW2fwE+a1fb8sMRyIw+ ga561XVhQXpGbGsS/PMsk80AJlgN86g6L/+cDZuI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44973: mm, slub: do not call do_slab_free for kfence object Date: Wed, 4 Sep 2024 21:00:26 +0200 Message-ID: <2024090425-CVE-2024-44973-a92d@gregkh> X-Mailer: git-send-email 2.46.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=2514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wLjoesWhmTUw1WpwnMMeq695x0pErvgHTJpF8wGHmXM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk31nmyNs4qeWrUbvLUu/lD2LevhkK3Qv56W+1imdCRn FfQcF26I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCLc4wi3n+JfWqozfnzGBf vXiSl3qApUPcLoa5kiqxMVE7OZZEt2tOEXI0OyrLKXcdAA== 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: mm, slub: do not call do_slab_free for kfence object In 782f8906f805 the freeing of kfence objects was moved from deep inside do_slab_free to the wrapper functions outside. This is a nice change, but unfortunately it missed one spot in __kmem_cache_free_bulk. This results in a crash like this: BUG skbuff_head_cache (Tainted: G S B E ): Padding overwritten. 0xffff88907fea0f00-0xffff88907fea0fff @offset=3840 slab_err (mm/slub.c:1129) free_to_partial_list (mm/slub.c:? mm/slub.c:4036) slab_pad_check (mm/slub.c:864 mm/slub.c:1290) check_slab (mm/slub.c:?) free_to_partial_list (mm/slub.c:3171 mm/slub.c:4036) kmem_cache_alloc_bulk (mm/slub.c:? mm/slub.c:4495 mm/slub.c:4586 mm/slub.c:4635) napi_build_skb (net/core/skbuff.c:348 net/core/skbuff.c:527 net/core/skbuff.c:549) All the other callers to do_slab_free appear to be ok. Add a kfence_free check in __kmem_cache_free_bulk to avoid the crash. The Linux kernel CVE team has assigned CVE-2024-44973 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 782f8906f805 and fixed in 6.10.5 with commit b35cd7f1e969 Issue introduced in 6.8 with commit 782f8906f805 and fixed in 6.11-rc3 with commit a371d558e6f3 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-44973 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: mm/slub.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/b35cd7f1e969aaa63e6716d82480f6b8a3230949 https://git.kernel.org/stable/c/a371d558e6f3aed977a8a7346350557de5d25190