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=1795154400; b=4Yur3qcBetjwTp0RjI3yi1tlZn81nCnw39g+2+fAat662GWccXYXnV/gaJppg3x96a05 0KVheerlA/48GX5QcuXOyBepAmTkEcSY/r3g3RSNHwAG5mijWM4og3c1otNsbCVw/cisP bd3MtLAanNL5LWnDxF0Lqm0NATOCU7q7GEer78inXld6Kkv0pT/eJlrry6GZ9eXPf8N2F gJr5RNX/71aQrg3K3gExbDYSQ0Wo7oofEXcuKvjkneYZA79gx9LrUueh1iUvdTzN0o3Rs wbFYIGVGKURyI2kbXN+Tzug8WqHcSiaw2N0RQnxLvmwGzQzDr90rrnUUkYKVzWe+fRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154400; 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=4M7ea1EFcVdHbRFRVKboyCuJeqXm6uyzbFFzfoGCRAQ=; b=ceI5Gtai0K3w2Oxem2F4cEyvMkUb+er4ziArLl1xsiL5lrdLAzBOg6qAU11z3t4t8fZ1 I2jvNLYM4w7Fg4hQWUjO0OWB8sWYciqTeta3ZCiO5v3K6sMkmKswLbnM26QS2pnn3OX1p u3udxkqm+cciDSEGB+nYo70mkamoqj8UEooqkrwU6xacmoJvCIqyIUK/O5epn2GYhq772 mKLwQLWI1wPXKrv4ZglyZxxFFkN9qHqU4JJpkGQoGjLt3EH9iziU6FIxrOEv2c9pVSlwa KVin+l0MZs0hUmmIItD934Wbaa7VweWtWSHYIw9U+60kvhFUHsWT098IC4U4URaJGQw== 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=xIbhd2cP; 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 4C457606A50E for ; Fri, 20 Nov 2026 06:00:00 +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=xIbhd2cP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D6D21F000D0; Fri, 20 Nov 2026 05:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154400; bh=4M7ea1EFcVdHbRFRVKboyCuJeqXm6uyzbFFzfoGCRAQ=; h=From:To:Cc:Subject:Date:Reply-To; b=xIbhd2cP6G0sllOXS69jki/IyNduv6vZ/cPl4qhduEKQYMOaglzb7t5dovGGtuMag srWVWmT5q5TnvkA3tJ1BaMRnB7CE4MzPRMGOIf5wGlTtuY1/bjYoWtZmi1wUzJih1j 8KHBNIWfjoQ2ovPfSFWSGuJA96+xcs4Vqym2/lDk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99731: mm/filemap: don't lose a folio lock wakeup to a signal Date: Fri, 20 Nov 2026 06:51:57 +0100 Message-ID: <2026112013-CVE-2026-99731-cfbb@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=3060; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ToLFRGFW9WYGfhYJ2S7OruGM7ZcqjmejD2lwyq5hLYE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7097ceDvb8ZmUWnHfLOHfWrbqoKMkk9vuT7pNJN0a G+W2Mv4jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIPmuGBQe2Gdu5+T+U+bZl 2XOe30oK//dtncowT6HOQeK8/KcZjc9zmrzSJt60PnzXDgA= 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/filemap: don't lose a folio lock wakeup to a signal An exclusive waiter in folio_wait_bit_common() can leave the wait loop because of a fatal signal, then be woken by folio_unlock() before finish_wait(). If the waker did not hand over the lock, the waiter returns -EINTR without trying to acquire it. folio_wake_bit() stops after waking the first exclusive waiter, so this loses the wakeup and can leave other waiters asleep indefinitely on an unlocked folio. After finish_wait(), let a waiter woken without a lock handoff try once more to acquire the lock. If successful, return success so the caller's eventual unlock wakes the next waiter. Otherwise, the current lock owner will do so. Fix generated by an LLM and sent by Josef Bacik in private. [ david: clarify and simplify comment + description ] The Linux kernel CVE team has assigned CVE-2026-99731 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 5ef64cc8987a9211d3f3667331ba3411a94ddc79 and fixed in 6.12.118 with commit 3ce549d0df658a36602f2d03882688af0ea03faf Issue introduced in 5.9 with commit 5ef64cc8987a9211d3f3667331ba3411a94ddc79 and fixed in 6.18.64 with commit da815f785e568accf0d4f2ec36233d316d5035c8 Issue introduced in 5.9 with commit 5ef64cc8987a9211d3f3667331ba3411a94ddc79 and fixed in 7.3.5 with commit 31cb998f208c078a6e9656b971bb311ea490ff1e Issue introduced in 5.9 with commit 5ef64cc8987a9211d3f3667331ba3411a94ddc79 and fixed in 7.4-rc2 with commit 8ccb6ded6a47b59b4907ed4f8c293cf8122de889 Issue introduced in 5.4.255 with commit c404e1e19780d8977f67411a3b951a964c6361ae 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-99731 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/filemap.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/3ce549d0df658a36602f2d03882688af0ea03faf https://git.kernel.org/stable/c/da815f785e568accf0d4f2ec36233d316d5035c8 https://git.kernel.org/stable/c/31cb998f208c078a6e9656b971bb311ea490ff1e https://git.kernel.org/stable/c/8ccb6ded6a47b59b4907ed4f8c293cf8122de889