CVE-2023-52770

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52770
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52770.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-52770
Related
Published
2024-05-21T16:15:16Z
Modified
2024-09-18T03:22:59.125632Z
Summary
[none]
Details

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(F2FSIOCSETPINFILE), 3) fallocate(2097152 * N)

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

BUG: KASAN: null-ptr-deref in instrumentatomicreadwrite out/common/include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomictrycmpxchgacquire out/common/include/asm-generic/atomic-instrumented.h:705 [inline] BUG: KASAN: null-ptr-deref in queuedwritelock out/common/include/asm-generic/qrwlock.h:92 [inline] BUG: KASAN: null-ptr-deref in _rawwritelock out/common/include/linux/rwlockapismp.h:211 [inline] BUG: KASAN: null-ptr-deref in _rawwrite_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: _dumpstack out/common/lib/dumpstack.c:77 [inline] dumpstacklvl+0x17e/0x1c4 out/common/lib/dumpstack.c:118 _kasanreport+0x16c/0x260 out/common/mm/kasan/report.c:415 kasanreport+0x51/0x70 out/common/mm/kasan/report.c:428 kasancheckrange+0x2f3/0x340 out/common/mm/kasan/generic.c:186 _kasancheckwrite+0x14/0x20 out/common/mm/kasan/shadow.c:37 instrumentatomicreadwrite out/common/include/linux/instrumented.h:101 [inline] atomictrycmpxchgacquire out/common/include/asm-generic/atomic-instrumented.h:705 [inline] queuedwritelock out/common/include/asm-generic/qrwlock.h:92 [inline] _rawwritelock out/common/include/linux/rwlockapismp.h:211 [inline] _rawwritelock+0x5a/0x110 out/common/kernel/locking/spinlock.c:295 _dropextenttree+0xdf/0x2f0 out/common/fs/f2fs/extentcache.c:1155 f2fsdropextenttree+0x17/0x30 out/common/fs/f2fs/extentcache.c:1172 f2fsinsertrange out/common/fs/f2fs/file.c:1600 [inline] f2fsfallocate+0x19fd/0x1f40 out/common/fs/f2fs/file.c:1764 vfsfallocate+0x514/0x9b0 out/common/fs/open.c:310 ksysfallocate out/common/fs/open.c:333 [inline] _dosysfallocate out/common/fs/open.c:341 [inline] _sesysfallocate out/common/fs/open.c:339 [inline] _x64sysfallocate+0xb8/0x100 out/common/fs/open.c:339 dosyscall_64+0x35/0x50 out/common/arch/x86/entry/common.c:46

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

6.*

6.1.27-1
6.1.37-1
6.1.38-1
6.1.38-2~bpo11+1
6.1.38-2
6.1.38-3
6.1.38-4~bpo11+1
6.1.38-4
6.1.52-1
6.1.55-1~bpo11+1
6.1.55-1
6.1.64-1
6.1.66-1
6.1.67-1
6.1.69-1~bpo11+1
6.1.69-1
6.1.76-1~bpo11+1
6.1.76-1
6.1.82-1
6.1.85-1
6.1.90-1~bpo11+1
6.1.90-1
6.1.94-1~bpo11+1
6.1.94-1
6.1.98-1
6.1.99-1
6.1.106-1
6.1.106-2
6.1.106-3
6.3.1-1~exp1
6.3.2-1~exp1
6.3.4-1~exp1
6.3.5-1~exp1
6.3.7-1~bpo12+1
6.3.7-1
6.3.11-1
6.4~rc6-1~exp1
6.4~rc7-1~exp1
6.4.1-1~exp1
6.4.4-1~bpo12+1
6.4.4-1
6.4.4-2
6.4.4-3~bpo12+1
6.4.4-3
6.4.11-1
6.4.13-1
6.5~rc4-1~exp1
6.5~rc6-1~exp1
6.5~rc7-1~exp1
6.5.1-1~exp1
6.5.3-1~bpo12+1
6.5.3-1
6.5.6-1
6.5.8-1
6.5.10-1~bpo12+1
6.5.10-1
6.5.13-1
6.6.3-1~exp1
6.6.4-1~exp1
6.6.7-1~exp1
6.6.8-1
6.6.9-1
6.6.11-1
6.6.13-1~bpo12+1
6.6.13-1
6.6.15-1
6.6.15-2
6.7-1~exp1
6.7.1-1~exp1
6.7.4-1~exp1
6.7.7-1
6.7.9-1
6.7.9-2
6.7.12-1~bpo12+1
6.7.12-1
6.8.9-1
6.8.11-1
6.8.12-1~bpo12+1
6.8.12-1
6.9.2-1~exp1
6.9.7-1~bpo12+1
6.9.7-1
6.9.8-1
6.9.9-1
6.9.10-1~bpo12+1
6.9.10-1
6.9.11-1
6.9.12-1
6.10-1~exp1
6.10.1-1~exp1
6.10.3-1
6.10.4-1
6.10.6-1~bpo12+1
6.10.6-1
6.10.7-1
6.10.9-1
6.11~rc4-1~exp1
6.11~rc5-1~exp1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.8-1

Affected versions

6.*

6.1.27-1
6.1.37-1
6.1.38-1
6.1.38-2~bpo11+1
6.1.38-2
6.1.38-3
6.1.38-4~bpo11+1
6.1.38-4
6.1.52-1
6.1.55-1~bpo11+1
6.1.55-1
6.1.64-1
6.1.66-1
6.1.67-1
6.1.69-1~bpo11+1
6.1.69-1
6.1.76-1~bpo11+1
6.1.76-1
6.1.82-1
6.1.85-1
6.1.90-1~bpo11+1
6.1.90-1
6.1.94-1~bpo11+1
6.1.94-1
6.1.98-1
6.1.99-1
6.1.106-1
6.1.106-2
6.1.106-3
6.3.1-1~exp1
6.3.2-1~exp1
6.3.4-1~exp1
6.3.5-1~exp1
6.3.7-1~bpo12+1
6.3.7-1
6.3.11-1
6.4~rc6-1~exp1
6.4~rc7-1~exp1
6.4.1-1~exp1
6.4.4-1~bpo12+1
6.4.4-1
6.4.4-2
6.4.4-3~bpo12+1
6.4.4-3
6.4.11-1
6.4.13-1
6.5~rc4-1~exp1
6.5~rc6-1~exp1
6.5~rc7-1~exp1
6.5.1-1~exp1
6.5.3-1~bpo12+1
6.5.3-1
6.5.6-1
6.5.8-1
6.5.10-1~bpo12+1
6.5.10-1
6.5.13-1
6.6.3-1~exp1
6.6.4-1~exp1
6.6.7-1~exp1

Ecosystem specific

{
    "urgency": "not yet assigned"
}