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 31DC41FF7B8 for ; Wed, 4 Dec 2024 14:21:23 +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=1733322083; cv=none; b=e4GX/zYIHyZNTHJPp8OaeQA8h+csymfF1VUyvmMLhztj67zDQihHX5+SojHcS5VXeWNp9mS/kaxUJ5l8GV5XyzdooaLFh7zKOak5TL4NUbEtVvl4Br+LU2fm1hQzR4u/tSvD+XSQT9SkIYJdGJRe69NzQAtxXxOOqcEGz5/+hEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733322083; c=relaxed/simple; bh=PBmB2fRn+dzRBgTH3G5eRltkTUtlfNpQPkdMHc3vFOw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cJYzkiF+Ud+53oHQ4DuPUUrnxbrHFYuxnzB9vdruAvt8ALIJ54UUr1+fPIo1CEvYPm88Q8zwPfEa/3irKO0UNG5F7GvlwDaLTnh6I9Skkat5NzPtWgqN4LmJpND00RHDtrIIdOZTltFcKRRIk/9bSmgmopAOIiHznnUq7kzbgpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L7dS+rZF; 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="L7dS+rZF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DD99C4CECD; Wed, 4 Dec 2024 14:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733322083; bh=PBmB2fRn+dzRBgTH3G5eRltkTUtlfNpQPkdMHc3vFOw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=L7dS+rZFvQZim4qPjEJsGERhW7boYu/DU2+Pf2vBpG68xq4uKFY8JEkWmWufyASt2 KhExWlZK8yKXq2dx2sRp2vXHUlsjnZBpqSmDt/eHEAVqEvuMzAUN8jcSw+B2VcX9iB HN2g2Ckvsg+5PlrR6CFwMnXM/SgWosHWHLpbYtEE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53128: sched/task_stack: fix object_is_on_stack() for KASAN tagged pointers Date: Wed, 4 Dec 2024 15:20:51 +0100 Message-ID: <2024120449-CVE-2024-53128-f08c@gregkh> X-Mailer: git-send-email 2.47.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=3635; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PBmB2fRn+dzRBgTH3G5eRltkTUtlfNpQPkdMHc3vFOw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkBqY7cu45bOm/cmddxZ/5ZiejrC+OC70w7+uzOsmPSk +6LR7d0dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEeu4zzLNzzPdV9GXxydp+ Y3f2clnJ7ZO/LWRY0NoZp9KryrN0UeUuA7M1/c4/DyZcAQA= 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: sched/task_stack: fix object_is_on_stack() for KASAN tagged pointers When CONFIG_KASAN_SW_TAGS and CONFIG_KASAN_STACK are enabled, the object_is_on_stack() function may produce incorrect results due to the presence of tags in the obj pointer, while the stack pointer does not have tags. This discrepancy can lead to incorrect stack object detection and subsequently trigger warnings if CONFIG_DEBUG_OBJECTS is also enabled. Example of the warning: ODEBUG: object 3eff800082ea7bb0 is NOT on stack ffff800082ea0000, but annotated. ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at lib/debugobjects.c:557 __debug_object_init+0x330/0x364 Modules linked in: CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.0-rc5 #4 Hardware name: linux,dummy-virt (DT) pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __debug_object_init+0x330/0x364 lr : __debug_object_init+0x330/0x364 sp : ffff800082ea7b40 x29: ffff800082ea7b40 x28: 98ff0000c0164518 x27: 98ff0000c0164534 x26: ffff800082d93ec8 x25: 0000000000000001 x24: 1cff0000c00172a0 x23: 0000000000000000 x22: ffff800082d93ed0 x21: ffff800081a24418 x20: 3eff800082ea7bb0 x19: efff800000000000 x18: 0000000000000000 x17: 00000000000000ff x16: 0000000000000047 x15: 206b63617473206e x14: 0000000000000018 x13: ffff800082ea7780 x12: 0ffff800082ea78e x11: 0ffff800082ea790 x10: 0ffff800082ea79d x9 : 34d77febe173e800 x8 : 34d77febe173e800 x7 : 0000000000000001 x6 : 0000000000000001 x5 : feff800082ea74b8 x4 : ffff800082870a90 x3 : ffff80008018d3c4 x2 : 0000000000000001 x1 : ffff800082858810 x0 : 0000000000000050 Call trace: __debug_object_init+0x330/0x364 debug_object_init_on_stack+0x30/0x3c schedule_hrtimeout_range_clock+0xac/0x26c schedule_hrtimeout+0x1c/0x30 wait_task_inactive+0x1d4/0x25c kthread_bind_mask+0x28/0x98 init_rescuer+0x1e8/0x280 workqueue_init+0x1a0/0x3cc kernel_init_freeable+0x118/0x200 kernel_init+0x28/0x1f0 ret_from_fork+0x10/0x20 ---[ end trace 0000000000000000 ]--- ODEBUG: object 3eff800082ea7bb0 is NOT on stack ffff800082ea0000, but annotated. ------------[ cut here ]------------ The Linux kernel CVE team has assigned CVE-2024-53128 to this issue. Affected and fixed versions =========================== Fixed in 6.11.10 with commit fbfe23012cec Fixed in 6.12 with commit fd7b4f9f46d4 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-53128 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: include/linux/sched/task_stack.h 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/fbfe23012cec509dfbe09852019c4e4bb84999d0 https://git.kernel.org/stable/c/fd7b4f9f46d46acbc7af3a439bb0d869efdc5c58