Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0077915534B for ; Mon, 29 Jul 2024 14:32:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722263562; cv=none; b=qiBCa1rNnNjiPmqOtNHnosum5snOHb8no09KGiXmnivXwy3S38LB6wcski0obTJU3zG7Bk4sVYr7qci+aBEeDVDX/jR9jYPev8aF+MWgcXfor72RxpBX0RWeo3+Fg+HlNfCBfEsqad63NWwXfcphBYf8vEdOjLQod/Btenf7O8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722263562; c=relaxed/simple; bh=qQo+XfOFk/ILmo/HtA9IiKvawE4LaSwzWQlx6q3LK5w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MohyObPhmHWz80F18TGL4Uqr2aRNRkr/caCRLQ2rzPXwi7RvGY3wxIxq9T3xiCdFhxThXqLPLrR6IhSj0db7F5d/249iAQ7DnqJdbDYMKps/L1KrANuD4Hgs7Ipa7Mc8qz5Pt81c8JCc8zpdscl5FPWnEy5R/swcwhZucDzUd1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qw5IIjKt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Qw5IIjKt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F16DC4AF09; Mon, 29 Jul 2024 14:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722263561; bh=qQo+XfOFk/ILmo/HtA9IiKvawE4LaSwzWQlx6q3LK5w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Qw5IIjKtbW4LbF/TY7xubiGXJHmiThHTIUkqBKGtQs66icORwWk7HtzxMeMLxJYv/ t8xxBK+qVbiqyGtFU2f3Gstc8MRxkNqTA9Hdbz6n5qn3nLv1guaJMkgO8rgnr6RUnw Fo6zPQTnoX39nWwDDKb+yYmw0OKpv2mpr/yU55/I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41033: cachestat: do not flush stats in recency check Date: Mon, 29 Jul 2024 16:32:28 +0200 Message-ID: <2024072922-CVE-2024-41033-d23e@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2081; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qQo+XfOFk/ILmo/HtA9IiKvawE4LaSwzWQlx6q3LK5w=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLl3/bfaMzxV58QedlNoXWTIm00/GHZxq0Xb6apmLr8 f11ZeHtjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhInTfDPAvfl4/fl+6sbK7c OFvrfbvQd+VnmxjmR1tst/Lg3jOpnTFuwUbNzkcRYVsjAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: cachestat: do not flush stats in recency check syzbot detects that cachestat() is flushing stats, which can sleep, in its RCU read section (see [1]). This is done in the workingset_test_recent() step (which checks if the folio's eviction is recent). Move the stat flushing step to before the RCU read section of cachestat, and skip stat flushing during the recency check. [1]: https://lore.kernel.org/cgroups/000000000000f71227061bdf97e0@google.com/ The Linux kernel CVE team has assigned CVE-2024-41033 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit b00684722262 and fixed in 6.9.10 with commit 1d1ba14e00d2 Issue introduced in 6.8 with commit b00684722262 and fixed in 6.10 with commit 5a4d8944d6b1 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-2024-41033 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: include/linux/swap.h mm/filemap.c mm/workingset.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/1d1ba14e00d290b1ed616ed78c8c49bf897ce390 https://git.kernel.org/stable/c/5a4d8944d6b1e1aaaa83ea42c116b520b4ed0394