CVE-2023-53608

nilfs2: fix potential UAF of struct nilfs_sc_info in nilfs_segctor_thread()

7.8 high EPSS 0.15%

Published 4 Oct 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2023-53608

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53608 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.61% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 034cce77d52ba013ce62b4f5258c29907eb1ada5
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 0dbf0e64b91ee8fcb278aea93eb06fc7d56ecbcc
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 613bf23c070d11c525268f2945aa594704a9b764
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before f32297dba338dc06d62286dedb3cdbd5175b1719
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 92684e02654c91a61a0b0561433b710bcece19fe
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before bae009a2f1b7c2011d2e92d8c84868d315c0b97e
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before b4d80bd6370b81a1725b6b8f7894802c23a14e9f
affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 6be49d100c22ffea3287a4b19d7639d259888e33
Other versions: unaffected
Linux
affected 2.6.30
unaffected before 2.6.30
unaffected from 4.14.313 up to and including 4.14.*
unaffected from 4.19.281 up to and including 4.19.*
unaffected from 5.4.241 up to and including 5.4.*
unaffected from 5.10.178 up to and including 5.10.*
unaffected from 5.15.107 up to and including 5.15.*
unaffected from 6.1.24 up to and including 6.1.*
unaffected from 6.2.11 up to and including 6.2.*
unaffected 6.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53608 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53608

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-53608
trivy image --scanners vuln IMAGE | grep CVE-2023-53608

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-53608 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.