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=1792759099; b=zKG75PPhyFysEJzWEPifsGE1Vz9MDcmo0OjfEPDQXspmhpX8wCSYBeBGXpixB3j1Pfol bNU0+W52CEBTKOCkwz0gT9+42dH1gOQLMiucigIPngrsJB3MA6EINdVT2VScp9x440o8S gW7/Kcb3u8V/4HBWIlD0i7F64+hNpVA1C/BnabyIajvrUYDUWJjQZ44hmOizb7dkvFo/a vPkikF/BP7qMyL9aS24WlXt3UjNWYpJKw3NAIcQ3lHOI0tHfVxbm7Di+Gtzhgi4NE7TRO xz5C5YfP0mLz/4vHqmt3nEnIAw0CWqdyqGyUh2ADkDCa2+SKndQT2lAF4k/NiC0hoeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759099; 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=bzgl5qBk688Qa70R2nc6Dsmo8YpRP58XuLCGaa9fONQ=; b=L3aOMEHUFjXdQ9wYeFmVniz2ikhi3xl6nOa6Vw/rQGs2ZN6PAH4EBvaPs5cHiTvX03O0 I67pY/etLbnAY54VY9UKtRcyhk7JUkmEGd3qmEa8XMnNSORiz0LjgqgNX9AsgCpPLlUI4 SKAENEFpd7+LjccjU+tYU2KXdIElyEwj5ZrSryjQsjZ4VsfxEsawCF0mU2V17+ERppHQw dyvR1jkCbCtXVZSoKgK0gPsh6M7qabVKPWdqMy7FEKmnHfekJ+lGaWXiAa9zUTkTHSAPc 2JLw6ft1RT3CHQC29hZ/EVhIrM0rMypKqM3DVIBQuEoVyge/iXJy6vQIHTEV6shCebQ== 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=xrIMCyjG; 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 1D47E606A31A for ; Fri, 23 Oct 2026 12:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=xrIMCyjG Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80BBB1F01825; Fri, 23 Oct 2026 12:38:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759098; bh=bzgl5qBk688Qa70R2nc6Dsmo8YpRP58XuLCGaa9fONQ=; h=From:To:Cc:Subject:Date:Reply-To; b=xrIMCyjGp5o6oXilIJBy3rtuuGciLHMhVVjEWYBuAGB/kgTyR9JOStx8KfMbZOz+9 rCjbtye+9/7KACFlhfEfI00u2cWNl3O/g1P731GiRaDotBgxLD07rYulL6NjRx7KPC Yt2yGiZRztpmYWlTCXcPwE2ZtglLSd8ygIE+tlB4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99036: dm: fix reading free memory in do_resume Date: Fri, 23 Oct 2026 14:20:38 +0200 Message-ID: <2026102325-CVE-2026-99036-bde7@gregkh> X-Mailer: git-send-email 2.56.0 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=2837; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PLJpj1pJMeW6R86Ap5n6O2UHkl5txmgFdp9x7q5sm7g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A86q3bwrf15q+utX/y7nMptMLE7mmrh617Fg36YtI Vdkvr3S7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfFRhWNCf+OrXIv3bLSfU v+S26J926zdlPcwwP9MkZNXK8w11zFs+ailumHBYq0BpHQA= 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: dm: fix reading free memory in do_resume When do_resume calls dm_table_get_mode(new_map), the call is done without holding any locks (it only holds a reference to the md). It may be possible that another concurrent ioctl on the same device will swap table after dm_swap_table and before dm_table_get_mode. In this case, dm_table_get_mode(new_map) reads freed memory. This race condition was triggered by syzbot. This commit fixes the race by reading mode of the new table before dm_swap_table. Note that new_map is also passed to dm_ima_need_measure, but this function doesn't attempt to dereference it, so this call should be safe. Note that this is not a security bug because only root can trigger it and the commonly used tools such as lvm or cryptsetup do not call the ioctls concurrently, so that they can't trigger it acceidentally. The Linux kernel CVE team has assigned CVE-2026-99036 to this issue. Affected and fixed versions =========================== Fixed in 6.6.160 with commit 281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c Fixed in 6.12.113 with commit 2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82 Fixed in 6.18.57 with commit e3bf232c913b7e0103d323f15e6342d37cb1b357 Fixed in 7.2.11 with commit 301691c32b8ad023e3316d5dbb6a8cf52d47b0dc Fixed in 7.3 with commit c9417c1c5269e2bd0570fbe53e4ec03a8d31f008 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-99036 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: drivers/md/dm-ioctl.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/281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c https://git.kernel.org/stable/c/2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82 https://git.kernel.org/stable/c/e3bf232c913b7e0103d323f15e6342d37cb1b357 https://git.kernel.org/stable/c/301691c32b8ad023e3316d5dbb6a8cf52d47b0dc https://git.kernel.org/stable/c/c9417c1c5269e2bd0570fbe53e4ec03a8d31f008