CVE-2023-53608 json
nilfs2: fix potential UAF of struct nilfs_sc_info in nilfs_segctor_thread()
published 2025-10-04 13 mo ago modified 2026-08-05 3 mo ago also EUVD-2025-32272
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 4%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix potential UAF of struct nilfs_sc_info in nilfs_segctor_thread()
The finalization of nilfs_segctor_thread() can race with nilfs_segctor_kill_thread() which terminates that thread, potentially causing a use-after-free BUG as KASAN detected.
At the end of nilfs_segctor_thread(), it assigns NULL to "sc_task" member of "struct nilfs_sc_info" to indicate the thread has finished, and then notifies nilfs_segctor_kill_thread() of this using waitqueue "sc_wait_task" on the struct nilfs_sc_info.
However, here, immediately after the NULL assignment to "sc_task", it is possible that nilfs_segctor_kill_thread() will detect it and return to continue the deallocation, freeing the nilfs_sc_info structure before the thread does the notification.
This fixes the issue by protecting the NULL assignment to "sc_task" and its notification, with spinlock "sc_state_lock" of the struct nilfs_sc_info. Since nilfs_segctor_kill_thread() does a final check to see if "sc_task" is NULL with "sc_state_lock" locked, this can eliminate the race.
Patch / fix
- Linux Linux 4.14.313, 4.19.281, 5.4.241, 5.10.178, 5.15.107, 6.1.24, 6.2.11, 6.3
- linux Debian 14, Debian 13, Debian 12 6.1.25-1
debian advisories DEBIAN-CVE-2023-53608
- linux Ubuntu 20.04 LTS 5.4.0-156.173
- linux Ubuntu 22.04 LTS 5.15.0-79.86
- linux-aws Ubuntu 20.04 LTS 5.4.0-1107.115
- linux-aws Ubuntu 22.04 LTS 5.15.0-1042.47
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1110.119
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1039.47
- linux-gke Ubuntu 22.04 LTS 5.15.0-1039.44
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1054.59
ubuntu advisories UBUNTU-CVE-2023-53608
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.127.1
- kernel-syms SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-source SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1
- kernel-default SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +3 more 5.14.21-150500.55.127.1
- kernel-obs-build SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-default-base SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1.150500.6.61.1
- kernel-rt SLE Micro 5.5 5.14.21-150500.13.112.1
- kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.112.1
suse advisories SUSE-SU-2025:4320-1SUSE-SU-2025:4149-1SUSE-SU-2025:4139-1SUSE-SU-2025:4111-1
- git.kernel.org/stable/c/034cce77d52ba013ce62b4f5258c29907eb1ada5 commit
- git.kernel.org/stable/c/0dbf0e64b91ee8fcb278aea93eb06fc7d56ecbcc commit
- git.kernel.org/stable/c/613bf23c070d11c525268f2945aa594704a9b764 commit
- git.kernel.org/stable/c/f32297dba338dc06d62286dedb3cdbd5175b1719 commit
- git.kernel.org/stable/c/92684e02654c91a61a0b0561433b710bcece19fe commit
- git.kernel.org/stable/c/bae009a2f1b7c2011d2e92d8c84868d315c0b97e commit
- git.kernel.org/stable/c/b4d80bd6370b81a1725b6b8f7894802c23a14e9f commit
- git.kernel.org/stable/c/6be49d100c22ffea3287a4b19d7639d259888e33 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-53608 updated
kernel: nilfs2: fix potential UAF of struct nilfs_sc_info in nilfs_segctor_thread()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/034cce77d52ba013ce62b4f5258c29907eb1ada5
patch
-
git.kernel.org
/stable/c/0dbf0e64b91ee8fcb278aea93eb06fc7d56ecbcc
patch
-
git.kernel.org
/stable/c/613bf23c070d11c525268f2945aa594704a9b764
patch
-
git.kernel.org
/stable/c/f32297dba338dc06d62286dedb3cdbd5175b1719
patch
-
git.kernel.org
/stable/c/92684e02654c91a61a0b0561433b710bcece19fe
patch
-
git.kernel.org
/stable/c/bae009a2f1b7c2011d2e92d8c84868d315c0b97e
patch
-
git.kernel.org
/stable/c/b4d80bd6370b81a1725b6b8f7894802c23a14e9f
patch
-
git.kernel.org
/stable/c/6be49d100c22ffea3287a4b19d7639d259888e33
patch
Sources
- CVE List CVE-2023-53608
- NVD CVE-2023-53608
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.