🛡️ CVE-2023-52770 — kernel

🟡 CVSS 5.5 — Medium ✅ No Known Exploit NVD
5.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

f2fs: split initial and dynamic conditions for extent_cache

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

f2fs: split initial and dynamic conditions for extent_cache

Let's allocate the extent_cache tree without dynamic conditions to avoid a

missing condition causing a panic as below.

# create a file w/ a compressed flag

# disable the compression

# panic while updating extent_cache

F2FS-fs (dm-64): Swapfile: last extent is not aligned to section

F2FS-fs (dm-64): Swapfile (3) is not align to section: 1) creat(), 2) ioctl(F2FS_IOC_SET_PIN_FILE), 3) fallocate(2097152 * N)

Adding 124996k swap on ./swap-file. Priority:0 extents:2 across:17179494468k

==================================================================

BUG: KASAN: null-ptr-deref in instrument_atomic_read_write out/common/include/linux/instrumented.h:101 [inline]

BUG: KASAN: null-ptr-deref in atomic_try_cmpxchg_acquire out/common/include/asm-generic/atomic-instrumented.h:705 [inline]

BUG: KASAN: null-ptr-deref in queued_write_lock out/common/include/asm-generic/qrwlock.h:92 [inline]

BUG: KASAN: null-ptr-deref in __raw_write_lock out/common/include/linux/rwlock_api_smp.h:211 [inline]

BUG: KASAN: null-ptr-deref in _raw_write_lock+0x5a/0x110 out/common/kernel/locking/spinlock.c:295

Write of size 4 at addr 0000000000000030 by task syz-executor154/3327

CPU: 0 PID: 3327 Comm: syz-executor154 Tainted: G O 5.10.185 #1

Hardware name: emulation qemu-x86/qemu-x86, BIOS 2023.01-21885-gb3cc1cd24d 01/01/2023

Call Trace:

__dump_stack out/common/lib/dump_stack.c:77 [inline]

dump_stack_lvl+0x17e/0x1c4 out/common/lib/dump_stack.c:118

__kasan_report+0x16c/0x260 out/common/mm/kasan/report.c:415

kasan_report+0x51/0x70 out/common/mm/kasan/report.c:428

kasan_check_range+0x2f3/0x340 out/common/mm/kasan/generic.c:186

__kasan_check_write+0x14/0x20 out/common/mm/kasan/shadow.c:37

instrument_atomic_read_write out/common/include/linux/instrumented.h:101 [inline]

atomic_try_cmpxchg_acquire out/common/include/asm-generic/atomic-instrumented.h:705 [inline]

queued_write_lock out/common/include/asm-generic/qrwlock.h:92 [inline]

__raw_write_lock out/common/include/linux/rwlock_api_smp.h:211 [inline]

_raw_write_lock+0x5a/0x110 out/common/kernel/locking/spinlock.c:295

__drop_extent_tree+0xdf/0x2f0 out/common/fs/f2fs/extent_cache.c:1155

f2fs_drop_extent_tree+0x17/0x30 out/common/fs/f2fs/extent_cache.c:1172

f2fs_insert_range out/common/fs/f2fs/file.c:1600 [inline]

f2fs_fallocate+0x19fd/0x1f40 out/common/fs/f2fs/file.c:1764

vfs_fallocate+0x514/0x9b0 out/common/fs/open.c:310

ksys_fallocate out/common/fs/open.c:333 [inline]

__do_sys_fallocate out/common/fs/open.c:341 [inline]

__se_sys_fallocate out/common/fs/open.c:339 [inline]

__x64_sys_fallocate+0xb8/0x100 out/common/fs/open.c:339

do_syscall_64+0x35/0x50 out/common/arch/x86/entry/common.c:46

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Affected software

CVE-2023-52770 is recorded against 2 packages.

  • kernel (from 6.6.0 up to 6.6.3)
  • linux-kernel (from 6.6 up to 6.6.3)

Timeline and source

Published on 21 May 2024 and last revised on 15 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

CVE-2023-52770 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 5.5
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-05-21
Updated 2026-08-12
Modified 2026-07-15

Affected Packages

Software From version Fixed in
kernel 6.6.0 6.6.3
linux-kernel 6.6 6.6.3

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in kernel

CVE-2023-52770 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.