Skip to contentSkip to conversation

CVE-2023-54248: fs/ntfs3: Add check for kmemdup

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: Add check for kmemdup

Since the kmemdup may return NULL pointer,
it should be better to add check for the return value in order to avoid NULL pointer dereference.

The Linux kernel CVE team has assigned CVE-2023-54248 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 5.15.111 with commit 952bbfcedbf895963509861e55a6e4fc105eb842
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.1.28 with commit 7898db22ed6cee909513cf4935b5f9f0298b74f0
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.2.15 with commit 9f36704a58adade3b0216f8a3fa5503db4517208
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.3.2 with commit cdcdfd57f4c701f832787da1309cc6687917d783
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.4 with commit e6c3cef24cb0d045f99d5cb039b344874e3cfd74

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-54248

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/ntfs3/fslog.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/952bbfcedbf895963509861e55a6e4fc105eb842
	https://git.kernel.org/stable/c/7898db22ed6cee909513cf4935b5f9f0298b74f0
	https://git.kernel.org/stable/c/9f36704a58adade3b0216f8a3fa5503db4517208
	https://git.kernel.org/stable/c/cdcdfd57f4c701f832787da1309cc6687917d783
	https://git.kernel.org/stable/c/e6c3cef24cb0d045f99d5cb039b344874e3cfd74