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 600CF4F649C for ; Wed, 16 Sep 2026 10:35:14 +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=1789554938; cv=none; b=Gmdw3SCSZMMNWv6qRdo+ZRRfIYFq+2bfl82CC3CKDwtYuouSPY9+NkgKUjTuW0k+Oa6ShbMnYfcTqpWyFFIMpmJ4sAab+06CVqukquQlrF4XEeykza3GqFyJNiH1v/iAeNzJUwpzfxvtwiFgP8QLJrth7NlQ2ssFslbRsuNBp3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554938; c=relaxed/simple; bh=5pOHgn9vDxRZx/7cS3wX/u/6HpidBLvuce3xcrk+B98=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LsZUI4q037q173dV0quu05UfWDYyHFEVdkJ4kYgRP/qwsD/gITo0AgUwRohNTxtD39CMhAm7MmQJ8r/XpQdwaL68ns+loT78I0TT1qhuIdXDHXAs9C3ppznJQPx+sr3OXdReJXGuZK/0qz/ydbvIYHUsirlS7MGijItH3JS4iBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PktAeEfT; 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="PktAeEfT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FE251F0089A; Wed, 16 Sep 2026 10:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554913; bh=Mf9pHxvS2mA/vVdP8DM9SI3nxRKJTdxRitEPuJcz7SI=; h=From:To:Cc:Subject:Date:Reply-To; b=PktAeEfTfanrivZj/euaDjVsfsydsMgS5EAm/oJreRxOE2cKcG1UwNyDGAPQ8H/oD gVh6cM2jnpqqT4Bcd8ndvehVYZ76SXJuRTj+sAMkJI8n602MQzDOEI+KrzcBqNm7TR hDAnC6qTt8He0h/9vj2YfQbWy9FH4q8Y1AaKvkas= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89839: f2fs: use the mount idmap for the owner check in f2fs_xattr_advise_set() Date: Wed, 16 Sep 2026 11:29:29 +0100 Message-ID: <2026091610-CVE-2026-89839-40cc@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=2929; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rR/Manr4Kooxoj2RZyC2jPu1a3SZPKT2gkgz+p78yPc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8suq2IK+L7qnuFTitfNkOfWKXcyffu1msPD47cgSU f3cL+diRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk0hyG+f4t7eaLZnZycoic a3W8dtRzne3LWob5uaeeNp0R/sWsp7Iz+PwXwzrX82WXAA== 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: f2fs: use the mount idmap for the owner check in f2fs_xattr_advise_set() f2fs_xattr_advise_set() calls inode_owner_or_capable() with &nop_mnt_idmap before allowing the "system.advise" xattr to be set, instead of the idmap that the VFS passes to the ->set() handler. f2fs supports idmapped mounts, so on such a mount this checks the caller's fsuid against the unmapped on-disk owner rather than the mapped owner: the actual owner can be wrongly denied with -EPERM and an unrelated caller wrongly allowed. Pass the handler's idmap instead. The Linux kernel CVE team has assigned CVE-2026-89839 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 01beba7957a26f9b7179127e8ad56bb5a0f56138 and fixed in 6.6.157 with commit 4c0c610b480cfbc57528aa1acbd6be12ed2a6fb1 Issue introduced in 6.3 with commit 01beba7957a26f9b7179127e8ad56bb5a0f56138 and fixed in 6.12.110 with commit c3e2692c7a58e0bdb84bd658d827e89dcecea3ad Issue introduced in 6.3 with commit 01beba7957a26f9b7179127e8ad56bb5a0f56138 and fixed in 6.18.51 with commit 3b681229e9f8fb1dd29bc65983bf3c87779e4ca3 Issue introduced in 6.3 with commit 01beba7957a26f9b7179127e8ad56bb5a0f56138 and fixed in 7.2.5 with commit ab31e3b774f5d06b4489cef6c297b48c47c9dcbd Issue introduced in 6.3 with commit 01beba7957a26f9b7179127e8ad56bb5a0f56138 and fixed in 7.3-rc1 with commit a54ffce4637acb0db8e695188a6c7f99f14c3576 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-89839 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/f2fs/xattr.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/4c0c610b480cfbc57528aa1acbd6be12ed2a6fb1 https://git.kernel.org/stable/c/c3e2692c7a58e0bdb84bd658d827e89dcecea3ad https://git.kernel.org/stable/c/3b681229e9f8fb1dd29bc65983bf3c87779e4ca3 https://git.kernel.org/stable/c/ab31e3b774f5d06b4489cef6c297b48c47c9dcbd https://git.kernel.org/stable/c/a54ffce4637acb0db8e695188a6c7f99f14c3576