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 DE13B3B8D40 for ; Tue, 6 Oct 2026 10:24:24 +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=1791282266; cv=none; b=Dvw7EkqMT0qYkFk/pATsJ8y6RKIrZAEbjvjIe8v0t3DWjLLpRnvXPlNnUmcvkj/R/Vx1XDqepVTgVUJcigJRNMZGHZ5j6on11Uhma1aY8Zfrjvi9IpKFk+tx2LWFTU3DQjmT0WMHC+ZsRU/6B1nYElI836s/Hf2iXxui624P6+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282266; c=relaxed/simple; bh=kNyTET8YdR56uUbGOUTEB4ipYGzDt/JzJ6zFmWsk5Po=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CiLZvK/TYyRm1v3CWmKeviC9446jLXhbHErZKFEkGMyQEiMeAXQTARMOujmDuj02qvjRDltInB7hgo6mJVbRae+mUlbZKXNDJY6avCbYPzFw5+jvVtrhuNZezRUWlazDL0kos4q6BDDoTinGyRP2BhsP/cPK7meg7xTUCI/AcJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NfdN+nJc; 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="NfdN+nJc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BB401F000FF; Tue, 6 Oct 2026 10:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282264; bh=zR3Ils1FbhhMXeC5P7ntvFk9ZQvUqLGkChSYryr6ZAM=; h=From:To:Cc:Subject:Date:Reply-To; b=NfdN+nJc/VUD4SgQRri+MzvLUQEnyTt9spPsaKAgZkAhDiSHLpvN2lpKz5wS8yP/S 3KhSD3FYwySNpmXMkM2BxBIdsyp9Ys5x4tTA1flfQoTqxZxaJxdvIW7LUlH7fu8Kzb ZlZ+ufPrhRNMlBwuK6bMshSvaBumB6kqasuwhHaA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98224: mm/vma: correctly unaccount on mmap_prepare() failure Date: Tue, 6 Oct 2026 10:45:25 +0200 Message-ID: <2026100643-CVE-2026-98224-6494@gregkh> X-Mailer: git-send-email 2.56.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=2440; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=US+aEDPEUefLU5rPg8+YqBmVZP74CJfUFqgqm8S3CDU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtvwWePk+3M28UPipYOveZym3Cp+19BYpNG9bbKDF0 yDzTOpcRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEoIJhQZMiQ+fyQx9O7LE4 uHfV4q0r2R8mbmGYX8J9IeeS7Jnnhvx5sgvLDjy5lc2ZDwA= 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: mm/vma: correctly unaccount on mmap_prepare() failure __mmap_setup() accounts memory for relevant mappings via: security_vm_enough_memory_mm() -> __vm_enough_memory() -> vm_acct_memory() If __mmap_setup() fails, this indicates that this accounting did not take place, and thus it's appropriate for __mmap_region() to jump to abort_munmap. However if call_mmap_prepare() fails, it also jumps there and any accounted memory is not correctly unaccounted. Fix this by handling each error separately. The Linux kernel CVE team has assigned CVE-2026-98224 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit c84bf6dd2b836b49bb2662668ff1692350d28236 and fixed in 6.18.54 with commit fb5400bff669c8bad3d4ec09287d9b461e89e5f1 Issue introduced in 6.16 with commit c84bf6dd2b836b49bb2662668ff1692350d28236 and fixed in 7.2.8 with commit 8fdc521d438fbf0d22c13d51d55d5dd82d7202b2 Issue introduced in 6.16 with commit c84bf6dd2b836b49bb2662668ff1692350d28236 and fixed in 7.3-rc4 with commit 6cc27d82196385fe06853319f74312a7d8019726 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-98224 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/vma.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/fb5400bff669c8bad3d4ec09287d9b461e89e5f1 https://git.kernel.org/stable/c/8fdc521d438fbf0d22c13d51d55d5dd82d7202b2 https://git.kernel.org/stable/c/6cc27d82196385fe06853319f74312a7d8019726