HIGH 7.1

CVE-2026-53303: Linux Kernel f2fs Race Condition Information Disclosure

A race condition exists in the Linux kernel's f2fs filesystem implementation that can occur when sysfs operations access extension list data without proper synchronization. When one process modifies the extension list while another reads it via sysfs, the reader may encounter inconsistent data—such as mismatched counts and array contents—potentially causing out-of-bounds memory access or displaying stale information. This requires local access to exploit and affects systems where untrusted local users can access sysfs interfaces.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.1 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weaknesses (CWE)
CWE-125
Affected products
1 configuration(s)
Published / Modified
2026-06-26 / 2026-07-06

NVD description (verbatim)

In the Linux kernel, the following vulnerability has been resolved: f2fs: protect extension_list reading with sb_lock in f2fs_sbi_show() In f2fs_sbi_show(), the extension_list, extension_count and hot_ext_count are read without holding sbi->sb_lock. If a concurrent sysfs store modifies the extension list via f2fs_update_extension_list(), the show path may read inconsistent count and array contents, potentially leading to out-of-bounds access or displaying stale data. Fix this by holding sb_lock around the entire extension list read and format operation.

6 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-53303 involves a synchronization flaw in f2fs_sbi_show() within the f2fs filesystem driver. The function reads extension_list, extension_count, and hot_ext_count without holding the sbi->sb_lock mutex, creating a time-of-check-time-of-use (TOCTOU) condition. Concurrent modification via f2fs_update_extension_list() can cause the show path to read a count that does not match the current array state, leading to out-of-bounds reads or information disclosure. The fix adds sb_lock protection around the entire extension list read and formatting operation to ensure consistent state during access.

Business impact

This vulnerability can lead to information disclosure or denial of service on affected Linux systems, particularly those with untrusted local user access or multi-tenant environments. Successful exploitation allows a local attacker to leak sensitive filesystem metadata or crash processes, impacting system availability and confidentiality. Organizations running f2fs on production systems with local user access should prioritize remediation to prevent potential data exposure or system instability.

Affected systems

Linux systems running affected versions of the Linux kernel with f2fs filesystem support enabled. The vulnerability requires local code execution capability to trigger the race condition. Systems where sysfs is world-readable and f2fs extensions are in active use face elevated risk. Embedded systems, containers, and multi-user environments are particularly vulnerable due to the local attack requirement being more easily satisfied.

Exploitability

Exploitation requires local access and the ability to trigger concurrent reads and writes to the f2fs extension list via sysfs. An attacker would need to synchronize thread execution to consistently trigger the race condition, making it non-trivial but achievable in multi-threaded scenarios. The vulnerability is not remotely exploitable and does not require elevated privileges to attempt. However, reliable exploitation may require timing precision or multiple attempts.

Remediation

Apply kernel patches that add sb_lock synchronization to f2fs_sbi_show(). Verify the patched version against your Linux distributor's security advisories. As a temporary mitigation, restrict sysfs access to trusted users where feasible, though this does not eliminate the underlying race condition. Systems should be updated to the next stable or long-term support kernel version containing the fix.

Patch guidance

Check your Linux distributor's security advisory portal for the specific patched kernel version addressing CVE-2026-53303. Kernel updates for f2fs fixes are typically delivered as part of routine kernel security releases. For LTS kernels, patches may be backported to stable branches. Verify patch application by confirming the presence of sb_lock protection in the f2fs_sbi_show() function or by checking the kernel version against the vendor's published advisory. Test in a staging environment before deploying to production systems relying on f2fs.

Detection guidance

Monitor system logs for unexpected crashes or panics in f2fs-related code paths. Check for repeated access patterns to /sys/fs/f2fs/ while concurrent filesystem modifications occur, which may indicate race condition exploitation attempts. Kernel debugging tools like kprobes can be used to instrument f2fs_sbi_show() and f2fs_update_extension_list() to detect concurrent access without lock protection. Systems with memory protection features enabled may halt on out-of-bounds access attempts, providing clear indicators of exploitation.

Why prioritize this

This vulnerability merits prioritization because it affects core filesystem functionality in the Linux kernel and can result in information disclosure or denial of service. The local-only attack vector limits impact in certain environments, but the HIGH CVSS score (7.1) reflects the combination of high confidentiality and availability impact. Organizations running f2fs in multi-user or container environments should prioritize patches, while single-user systems face lower risk. The race condition nature means it may be difficult to exploit reliably in production, but determined attackers with local access can achieve consistent triggering.

Risk score, explained

The CVSS 3.1 score of 7.1 (HIGH) reflects the vulnerability's characteristics: local attack vector (AV:L) with low complexity (AC:L), requiring low privilege (PR:L), high confidentiality impact (C:H), and high availability impact (A:I). No integrity impact is documented. The score appropriately captures the risk in multi-user systems where untrusted local users may trigger the race condition, but excludes network and no-privilege scenarios that would increase severity. Organizations should adjust their internal risk scoring based on the prevalence of f2fs use and local user access policies.

Frequently asked questions

Does this vulnerability require root privileges to exploit?

No. The vulnerability requires only local access with low privileges to trigger the race condition. Any local user with ability to read sysfs interfaces and execute code can attempt exploitation. This makes it exploitable in container escapes or multi-tenant scenarios where local execution is already achieved.

Can this vulnerability be exploited remotely?

No. This is exclusively a local vulnerability requiring direct code execution on the affected system. Remote exploitation is not possible as it does not involve network protocols or services accessible over the network.

Which Linux distributions are affected?

Any Linux distribution shipping the affected kernel versions with f2fs enabled will be vulnerable. The vulnerability exists in the upstream Linux kernel, so impact extends across distributions including Red Hat, Ubuntu, Debian, and others. Check your distributor's security advisory for specific affected versions and available patches.

What is the difference between extension_count mismatch and out-of-bounds access?

A mismatch between extension_count and the actual array size can cause the show function to read beyond allocated memory (out-of-bounds read), leaking sensitive information or crashing the process. The race condition allows one CPU to modify the array while another reads it, creating this dangerous inconsistency.

This analysis is based on the published CVE description and CVSS scoring provided by the Linux kernel maintainers. Security teams should verify all patch versions and affected kernel releases against official vendor advisories before deployment. The severity and exploitability assessment assumes standard Linux kernel configurations with f2fs enabled; custom kernel builds may have different attack surfaces. This document does not constitute a substitute for vendor security guidance and should inform rather than replace internal risk assessment processes. No proof-of-concept code or weaponized exploit details are provided; organizations should conduct their own security testing in isolated environments if needed. Source: NVD (public-domain), retrieved 2026-08-05. Analysis generated by SEC.co (claude-haiku-4-5).