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 8F7DA284684 for ; Tue, 16 Sep 2025 08:13:24 +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=1758010404; cv=none; b=cvSvspglynrpSgwcXjEgE1+ZB8LBRhZJYgxKsVV+TZNRar32buqfnmUFeQlgUtO9+R3bwexS2kHfM8a+WG/eaLPdemuwkyiV6vnSjtjgWTVQ6nHpO5iaFzDg+c1wNeNT49n915vtw0xONX8JJHEVUIS4R+qNx0bylbqrtPFraWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758010404; c=relaxed/simple; bh=OlS2LAgK5suJgH0dGHBIC6Dqo2jLuUIsYLsUq5qrGuo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GGlpFK4b7CHlU/JiAcFyfGNEdQuhoEgx8bgYVjWEY3JkGMjm46xKvsOoczGGWbKazGGTCtp3ITHpAG74hVXUV7zxoSpSo4pKYtPSBmItWw6A+rYt9AUAlwHRnkMfVwXMs4/+jKr4nSmb1vMgb4o9a2At8kWYqqt1EPuB/0KOqJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zznpVG5D; 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="zznpVG5D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C2C4C4CEEB; Tue, 16 Sep 2025 08:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758010404; bh=OlS2LAgK5suJgH0dGHBIC6Dqo2jLuUIsYLsUq5qrGuo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zznpVG5DhimPFCGlKhX27YiLD55GODKcxBiY49yyeQ10vvo1mIXCQ+Fz+ghLsNdxB nTlZySCJ9eTzmzgY9zkbyWYgFIIMHhSlm9Z6Jf4Y9NE/6btVIDDD28LIO69IDcDC4R j1xw5vHV4KeVLwyvNi6sjPDcZuN2wUhny9ze3JPk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53301: f2fs: fix kernel crash due to null io->bio Date: Tue, 16 Sep 2025 10:11:51 +0200 Message-ID: <2025091628-CVE-2023-53301-4a84@gregkh> X-Mailer: git-send-email 2.51.0 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=2674; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+5aC3cxbQBkcG/2R5K11VjqhUScRVu/7bSUJTSSCCnw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknpTe8PNSxoExK6FZpynNtzWlVeyYti5vOunTr9XvnO 74e1pEX6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfPZmWLCU7Zb6L5MlRw4d XJ5Xp+XzwiBnqw3DHE6xb7u02TaG7ur4p+7X9G6W9ZIZJwE= 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: f2fs: fix kernel crash due to null io->bio We should return when io->bio is null before doing anything. Otherwise, panic. BUG: kernel NULL pointer dereference, address: 0000000000000010 RIP: 0010:__submit_merged_write_cond+0x164/0x240 [f2fs] Call Trace: f2fs_submit_merged_write+0x1d/0x30 [f2fs] commit_checkpoint+0x110/0x1e0 [f2fs] f2fs_write_checkpoint+0x9f7/0xf00 [f2fs] ? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs] __checkpoint_and_complete_reqs+0x84/0x190 [f2fs] ? preempt_count_add+0x82/0xc0 ? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs] issue_checkpoint_thread+0x4c/0xf0 [f2fs] ? __pfx_autoremove_wake_function+0x10/0x10 kthread+0xff/0x130 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x2c/0x50 The Linux kernel CVE team has assigned CVE-2023-53301 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 64bf0eef0171912f7c2f3ea30ee6ad7a2ad0a511 and fixed in 6.1.16 with commit 83dbb9a1bd5ef2eea73275906fc50b2fdda39cd5 Issue introduced in 5.18 with commit 64bf0eef0171912f7c2f3ea30ee6ad7a2ad0a511 and fixed in 6.2.3 with commit eb52f13c6093ac761dbeaa459c810fc0253209fc Issue introduced in 5.18 with commit 64bf0eef0171912f7c2f3ea30ee6ad7a2ad0a511 and fixed in 6.3 with commit 267c159f9c7bcb7009dae16889b880c5ed8759a8 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-2023-53301 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: fs/f2fs/data.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/83dbb9a1bd5ef2eea73275906fc50b2fdda39cd5 https://git.kernel.org/stable/c/eb52f13c6093ac761dbeaa459c810fc0253209fc https://git.kernel.org/stable/c/267c159f9c7bcb7009dae16889b880c5ed8759a8