From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796048368; b=jn75ULQjq70hdeYXkv26RFHl26DB82aid0DUbEgqFBPdNGFREznS5PRVdxZQtCJAm7Pz vuGmOZ1oEEPhIQ3y8fUtBeRyExxkFJg5OCC59JOE/48SE3dSu6m7v1XY5iVe1UFSbTdhi 20CfO/7i73jXS35KkAGw/5TmKcE/lN53z0zXat4vfeLsZSEaEox/Mpbbns/j2PTrhbYiO rj5bsbmikPKFCkGujNc3L/G3qdNDY6Iv7YxQnqGe5dONkZFs4DWgLlyjTcD5U9DEPJFsm 6mxDwrjQ6JxRAznLe2rMMDpcbip9thW9/JzWRSOCNgETRyZ0u311fsW8HKdbKnNwx9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796048368; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=fPvWbw7zTsHq5CP+CftfQMhov8CMa7K/JUA6hgltVsg=; b=05UbAuZ0G+f5qkuXPd/LL74yeVJAXSTzTFHL+/YVgo5jvFYgj2sh9/Iep7DKvku/tzsT KZBF3ptOtkI38WTc3Sd+fqjEFoA1sij/LEh7Eb7vLxLAVy1KNri19g2K5tB3AmZ3NwPlA 3mkxS1Q9cl28Q+ecm1DDKmeppnUIlADoIl0iqziQv7UHKOMSW3TaNo+D85svHjGMIKBdS Ar3k5Vtxze+XctqtUQRQB0Nv/1lV/dMCcV6acmd13TrIrP/t/4aJlAgVlsgS43OfpztAQ 88OTJv891VZf2dMsfplqty5BVGg1ipp0Sbh+I9coJ7VaDHG3Mm738dO1d3qfVBfbvrQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=CqSKkYDW; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D689D606A320 for ; Mon, 30 Nov 2026 14:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=CqSKkYDW Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D0FA1F00897; Mon, 30 Nov 2026 14:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796048368; bh=fPvWbw7zTsHq5CP+CftfQMhov8CMa7K/JUA6hgltVsg=; h=From:To:Cc:Subject:Date:Reply-To; b=CqSKkYDWbfKX+ANL9BFBrYbISLRMVzOGgRhyejPmeAeMllGsxjjmokjDoND2w9N6n bqzeL/p+RJ+rvDg7vY3Bhagf2dnvUW42uj+LglrZOeZWwHurUceekHdioMLsPVUa5N dyBT3eEmBfWuUNM04Naba6lJgtFO4/mtFtRzHhUQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139553: mm/memory_hotplug: fix missing rollback in __add_pages() Date: Mon, 30 Nov 2026 14:39:22 +0100 Message-ID: <2026113056-CVE-2026-139553-da30@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2877; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7Pvb9Kv4Bb6fAiKBFKulHtRo0DNeU2eZ8rBmGQi/b8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm81Rx1d1Oijs3dyP193Syuqcc47ba/yuepZOcP6P6co +TfIHG5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay14FhvtuBE8+Pa6WfXakl IrYmbBrHk/8S/xnmR01SfyzgJ5X7qrOy+FZWZyxLV+R0AA== 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/memory_hotplug: fix missing rollback in __add_pages() __add_pages() returns on a sparse_add_section() failure without removing the sections already added in the same request. For memremap_pages(), the failed range is not counted in pgmap->nr_range, so memunmap_pages() skips it. The sections already added in that range retain their vmemmap mappings and subsection bits. Retrying a section-aligned range can then fail with -EEXIST. Save the initial PFN and remove [start_pfn, pfn) on failure. For a vmemmap population failure, section_activate() already cleans up the current section, so the rollback excludes it. If the first section fails, __remove_pages() receives an empty range and does nothing. The Linux kernel CVE team has assigned CVE-2026-139553 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 6.12.119 with commit 23c6b72ae412271a937d3b9706ee13ba9c84bc92 Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 6.18.66 with commit 5853ffdd61233bc7c0061d80ec6dc4c4cd969851 Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 7.3.6 with commit 2062695c28db539725e4882ad9ffac969ee29db3 Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 7.4-rc1 with commit c31bb839fb829958101250ee5acfa4f94fdb7ecd 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-139553 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/memory_hotplug.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/23c6b72ae412271a937d3b9706ee13ba9c84bc92 https://git.kernel.org/stable/c/5853ffdd61233bc7c0061d80ec6dc4c4cd969851 https://git.kernel.org/stable/c/2062695c28db539725e4882ad9ffac969ee29db3 https://git.kernel.org/stable/c/c31bb839fb829958101250ee5acfa4f94fdb7ecd