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 E7F89426D20 for ; Wed, 6 May 2026 11:30:13 +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=1778067014; cv=none; b=FhOI1NLeSb9PAiILo5yUxsFgfZeahRlduSYE6JIbIDUyRo+qXEoLA+tXKnnjwrmu0rJTwYIVAHsSfkNwqW2ktOO0ygDevNzJE4nf73VSBk5pjSjUtQ1VBI7CadWTD1XKVwHioC7f4AEcaL7whdD5yurpU8EYLTh6zOXTmahY1eQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067014; c=relaxed/simple; bh=aZ4NMmAORK1Vme1o9Jgf5Zm58Sttr6mze0hse2kDhrY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b3mYcWADsN4SbNmNt7fm601vnyRkf+AJKLQHUfrkbzcRnicbDnx5ipLB1D14SQo1bvu8GDxwaSxZEtJA9CkfvJpk1EcqDsGMyUuyEPbrgkfCFrnZzgXCWFsCB51t11nFCvlkOxadReav2+8gBzhtX6ch2IHi5h+7et+rKl7SFu0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uWXvPtGP; 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="uWXvPtGP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2904EC2BCB8; Wed, 6 May 2026 11:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067013; bh=aZ4NMmAORK1Vme1o9Jgf5Zm58Sttr6mze0hse2kDhrY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=uWXvPtGP4RaPeWv7bp2QpAD8qbOq/FrR/KkYjaJsYqqaCHjsQmhg/Ajwh4zYkbgfA NkB7GIukp66m+DtyRz1o7D37uuzQMjSHysU4NIHRpqUEPhPjozOssTSUOt/vVwnGwQ Ob6Or2tpTcGzOAc2YrWTt3/s6FaVHiKwsXcIQP7Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43153: xfs: remove xfs_attr_leaf_hasname Date: Wed, 6 May 2026 13:27:49 +0200 Message-ID: <2026050629-CVE-2026-43153-9294@gregkh> X-Mailer: git-send-email 2.54.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=2679; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HmtswPyG70PTGjUGOKnPTsiSQqdavH2cHQxrO1PQTls=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VRe+jDBbUPcrf8MtJf6u88d9RG88udxTObP8QVnMr di7KcoSHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRmf8YFkzqev80nd1EveBX YEH+Wa6eUw8i5jPMlXY52t2l1bn1Qu8slmcX/uTbt52cBgA= 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: xfs: remove xfs_attr_leaf_hasname The calling convention of xfs_attr_leaf_hasname() is problematic, because it returns a NULL buffer when xfs_attr3_leaf_read fails, a valid buffer when xfs_attr3_leaf_lookup_int returns -ENOATTR or -EEXIST, and a non-NULL buffer pointer for an already released buffer when xfs_attr3_leaf_lookup_int fails with other error values. Fix this by simply open coding xfs_attr_leaf_hasname in the callers, so that the buffer release code is done by each caller of xfs_attr3_leaf_read. The Linux kernel CVE team has assigned CVE-2026-43153 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 07120f1abdff80f3d1351f733661abe28d609535 and fixed in 6.12.75 with commit 2fbc8421d1db102c0e5458607e042a23a03648b1 Issue introduced in 5.9 with commit 07120f1abdff80f3d1351f733661abe28d609535 and fixed in 6.18.16 with commit 457121c01f609b9934addbb04d5c1ef638c71c61 Issue introduced in 5.9 with commit 07120f1abdff80f3d1351f733661abe28d609535 and fixed in 6.19.6 with commit 530082df991903f3330354e99e0cb7b05debfa86 Issue introduced in 5.9 with commit 07120f1abdff80f3d1351f733661abe28d609535 and fixed in 7.0 with commit 3a65ea768b8094e4699e72f9ab420eb9e0f3f568 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-43153 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/xfs/libxfs/xfs_attr.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/2fbc8421d1db102c0e5458607e042a23a03648b1 https://git.kernel.org/stable/c/457121c01f609b9934addbb04d5c1ef638c71c61 https://git.kernel.org/stable/c/530082df991903f3330354e99e0cb7b05debfa86 https://git.kernel.org/stable/c/3a65ea768b8094e4699e72f9ab420eb9e0f3f568