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 00B96367B6F for ; Sat, 15 Aug 2026 06:18:48 +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=1786774729; cv=none; b=HcJ8MpoPQkS+pj1kFknroziKU2G6Jg7RTUFvs5EbaFWa461cj2pIZzxlsptO7LmccvSynjETnQkB8wXCXuXCibQ31p+HZMBw+tIwZ4A91tRrrRgvyUzAtRWG7ca+1YthNj9zhhjtvvBScPnEag8wGcd1RExqfdsV95oqPNoi7ws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774729; c=relaxed/simple; bh=RKgsru7nFOtyBc8Aen02HxV7FE+JvT1h0lrV8y5c7g4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DsSfff6CXcPvGXztwmO4dQDic+4GHAkit/iRANcu5T5ZkO7YOLwSZzYTNto4uqyuyh6Z10Ijztdb1HM/GbS2214nWdwGJ0koGQbWzbZXc/VoLuB2jEVyzQbX+VUi6BWSdT5Ykzz6xNHPixrN5J5VNQH/gJYHuySwkHh3qJIxMYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DJwsXnUJ; 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="DJwsXnUJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CBB91F000E9; Sat, 15 Aug 2026 06:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774727; bh=a4zfatxu+hIW6u+Dij2F5RwUg7OyXYKVcPFlOcUshzQ=; h=From:To:Cc:Subject:Date:Reply-To; b=DJwsXnUJ7Ggw1dC7tvxElUQLHHso7PJCYkOUumdffv4k7IUzUftUnPJVH1uZmy65y 69e7HTOIquEooezW9xTV4DaLR/DO/aptCvhOvn6DUKInlq5oUcWvoyMAli7UmvxBkq PdmCgdTG1Ho+OZORWd9bcMDAiIMulqp3Hz5gC5v8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72213: mm/hugetlb: fix hugetlb cgroup rsvd charge/uncharge mismatch Date: Sat, 15 Aug 2026 15:04:52 +0900 Message-ID: <2026081546-CVE-2026-72213-712e@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=3284; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZZX/gSDo18IAr9CE5SpEiblzvOqFRIzl7Bi05Hm/q9s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDKfepouarpn3K/G5zv3wnrd8aa5tAuxrak9/6lHhP ubCukO9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZS8olhQfe/itt8K0u+h/FL zF3flyLwPpL3M8OCtg9eb3Yr3zPQM5j1LOjV1Z97igpDAA== 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/hugetlb: fix hugetlb cgroup rsvd charge/uncharge mismatch In alloc_hugetlb_folio(), a single h_cg pointer is used for both the rsvd and non-rsvd hugetlb cgroup charges. When map_chg is set, hugetlb_cgroup_charge_cgroup_rsvd() stores the charged cgroup in h_cg, but the immediately following hugetlb_cgroup_charge_cgroup() overwrites h_cg with the non-rsvd cgroup pointer. As a result, hugetlb_cgroup_commit_charge_rsvd() stores the wrong (non-rsvd) cgroup pointer into the folio's rsvd slot. When the folio is later freed, free_huge_folio() unconditionally calls both hugetlb_cgroup_uncharge_folio() and hugetlb_cgroup_uncharge_folio_rsvd(). The rsvd uncharge reads back the wrong cgroup from the folio and decrements a counter that was never charged for that cgroup, causing a page_counter underflow: page_counter underflow: -512 nr_pages=512 WARNING: mm/page_counter.c:61 at page_counter_cancel Fix this by introducing a separate h_cg_rsvd pointer exclusively for the rsvd charge path, keeping the rsvd and non-rsvd charges fully independent through their charge, commit, and error uncharge paths. The Linux kernel CVE team has assigned CVE-2026-72213 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 08cf9faf7558020aed6a0da5810b824b07139dfa and fixed in 6.12.101 with commit 5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd Issue introduced in 5.7 with commit 08cf9faf7558020aed6a0da5810b824b07139dfa and fixed in 6.18.40 with commit 1697d253f51cf5e3825a3423ff49e128a3502ab2 Issue introduced in 5.7 with commit 08cf9faf7558020aed6a0da5810b824b07139dfa and fixed in 7.1.5 with commit b785f2bd9496facedc0a031be09cddcd1d3c84d3 Issue introduced in 5.7 with commit 08cf9faf7558020aed6a0da5810b824b07139dfa and fixed in 7.2-rc1 with commit 15807d0ddde37407af72859426b654f3d1972b00 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-72213 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/hugetlb.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/5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd https://git.kernel.org/stable/c/1697d253f51cf5e3825a3423ff49e128a3502ab2 https://git.kernel.org/stable/c/b785f2bd9496facedc0a031be09cddcd1d3c84d3 https://git.kernel.org/stable/c/15807d0ddde37407af72859426b654f3d1972b00