Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CCE07494836 for ; Fri, 25 Sep 2026 10:31:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332317; cv=none; b=cng0+MP8/DbvtjZEoh6rsOzO7NdzAGwo1hFXcPAtvJrFAXGg58eiGzWgvDQ+wM2GIXVsin1GLnF1z2kekE57jt9jCkoEgdKu32FKaG5lanyFXO/BIyKbIJctewCKIxL2leAPmuKioGWRqlTAHcLVarxYYXL533VLMPnjd6c0O1g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332317; c=relaxed/simple; bh=QDp8gHBx4JwBYr9iAfw9YVc/kjJn6mNVfg8bh7gV26U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CKo5cCvV1kUbwecyAPtLoyscnZZHsRuKiqQ4htajD3tbtpDgkus3SEbz+cUSZnqqCvFkDLISURKO5VDBGrF1aMy2xbdFwXr+cJgxFcXv6MPTLf50msawBkrRbNL2xdbkCeeOcwdDk4cZWw3wHVWeHu/1vI7R+/VVXIfXlqRYcYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nTPp7GyP; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nTPp7GyP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29C2D1F000FF; Fri, 25 Sep 2026 10:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332315; bh=PZat2hgZCyD/Dxl31wmiz/421Pe5RlZluEL8mOc6vGg=; h=From:To:Cc:Subject:Date:Reply-To; b=nTPp7GyPlN50tay0Jl/WZQruvZY5yzllkOPuMzF3erKEUUvm8o4ojNy1VTiiyF4Kz PpwORCoQehS7o94W8oz15HEJfgHVIJf5Ig8RB6FwpB1rOdXuw/nUXJfwCq3mgF3YLa RT9v1yIZuSqoElKqOpc9/HVcUG8OxZ4qNoCVzBrQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97949: configfs: unhash the dentry before dropping the item in rmdir Date: Fri, 25 Sep 2026 12:24:12 +0200 Message-ID: <2026092513-CVE-2026-97949-110b@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2925; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=URO+16S8+rgMuZM0i9xz0DmQZvPEM00N4rtDfYvLi5A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvENXez/4+uL536WVEa0z5nPpCRY9PbQ0nOOM6LPjN 6Uarx3z6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICL/GWYH7Tl5Zp2rzU2T10n nqgrSF7oKae1iGGeVkHJtrtHezdmV9+ILTZk2ZHpOksCAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: configfs: unhash the dentry before dropping the item in rmdir configfs_get_config_item() treats a hashed dentry as proof that sd->s_element is a live config_item. configfs_rmdir() breaks that: simple_rmdir() leaves the dentry hashed, the last reference to the item is dropped right after, and the dentry is only unhashed by d_delete() once ->rmdir() has returned. configfs_symlink() resolves its target holding no lock on it, so get_target() can land in that window: BUG: KASAN: slab-use-after-free in config_item_get+0x26/0x90 get_target fs/configfs/symlink.c:128 [inline] configfs_symlink+0x4ab/0x1030 fs/configfs/symlink.c:185 Unhash in configfs_remove_dir(), while the item is still guaranteed to be there. A reference obtained just before that stays harmless, as create_link() rechecks CONFIGFS_USET_DROPPING, already set by configfs_detach_prep(). Both configfs_unregister_subsystem() paths d_drop() after detaching, so this only makes rmdir match them. The Linux kernel CVE team has assigned CVE-2026-97949 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.16 with commit 7063fbf2261194f72ee75afca67b3b38b554b5fa and fixed in 6.18.53 with commit 5d7cbfb65e47cc71d5d94d87d5d0d1679080f3eb Issue introduced in 2.6.16 with commit 7063fbf2261194f72ee75afca67b3b38b554b5fa and fixed in 7.2.7 with commit 925d8564f1b2d9b46c5ab63b9bc942cea006da9b Issue introduced in 2.6.16 with commit 7063fbf2261194f72ee75afca67b3b38b554b5fa and fixed in 7.3-rc3 with commit f06c2d26d1999d37e93299db0ecead04ca7d0b9f 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-2026-97949 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: fs/configfs/dir.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/5d7cbfb65e47cc71d5d94d87d5d0d1679080f3eb https://git.kernel.org/stable/c/925d8564f1b2d9b46c5ab63b9bc942cea006da9b https://git.kernel.org/stable/c/f06c2d26d1999d37e93299db0ecead04ca7d0b9f