CVE-2026-23235 json
f2fs: fix out-of-bounds access in sysfs attribute read/write
published 2026-03-04 8 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-9407
- cvss
- 7.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 7%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix out-of-bounds access in sysfs attribute read/write
Some f2fs sysfs attributes suffer from out-of-bounds memory access and incorrect handling of integer values whose size is not 4 bytes.
For example: vm:~# echo 65537 > /sys/fs/f2fs/vde/carve_out vm:~# cat /sys/fs/f2fs/vde/carve_out 65537 vm:~# echo 4294967297 > /sys/fs/f2fs/vde/atgc_age_threshold vm:~# cat /sys/fs/f2fs/vde/atgc_age_threshold 1
carve_out maps to {struct f2fs_sb_info}->carve_out, which is a 8-bit integer. However, the sysfs interface allows setting it to a value larger than 255, resulting in an out-of-range update.
atgc_age_threshold maps to {struct atgc_management}->age_threshold, which is a 64-bit integer, but its sysfs interface cannot correctly set values larger than UINT_MAX.
The root causes are: 1. __sbi_store() treats all default values as unsigned int, which prevents updating integers larger than 4 bytes and causes out-of-bounds writes for integers smaller than 4 bytes.
2. f2fs_sbi_show() also assumes all default values are unsigned int, leading to out-of-bounds reads and incorrect access to integers larger than 4 bytes.
This patch introduces {struct f2fs_attr}->size to record the actual size of the integer associated with each sysfs attribute. With this information, sysfs read and write operations can correctly access and update values according to their real data size, avoiding memory corruption and truncation.
Patch / fix
- Linux Linux 5.10.251, 5.15.201, 6.1.164, 6.6.127, 6.12.74, 6.18.13, 6.19.3, 7.0
- linux Debian 12 6.1.164-1
- linux Debian 13 6.12.74-2
- linux Debian 14 6.18.13-1
debian advisories DEBIAN-CVE-2026-23235
- linux Ubuntu 22.04 LTS 5.15.0-186.196
- linux Ubuntu 24.04 LTS 6.8.0-134.134
- linux-aws Ubuntu 22.04 LTS 5.15.0-1112.119
- linux-aws Ubuntu 24.04 LTS 6.8.0-1060.63
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1112.122
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1063.69
- linux-gke Ubuntu 22.04 LTS 5.15.0-1108.114
- linux-gke Ubuntu 24.04 LTS 6.8.0-1058.64
ubuntu advisories UBUNTU-CVE-2026-23235
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-source openSUSE Tumbleweed 6.19.8-1.1
opensuse advisories openSUSE-SU-2026:10387-1
- git.kernel.org/stable/c/e85a99db9ab85dfc30d93b0ca0e9156f3127f55a commit
- git.kernel.org/stable/c/438a405fbad6882df0e34b3e1a16839a71f04240 commit
- git.kernel.org/stable/c/6a6c07a9b49e43f0df42d7118fc76aa555c73d98 commit
- git.kernel.org/stable/c/eebd72cff518ac87e660aefb8a41224bd88c32ce commit
- git.kernel.org/stable/c/4ef30b9f1641c9e877792df6b049f1cf507d002d commit
- git.kernel.org/stable/c/d4a594dd952df123cbdcdee9b9640d9d55e4a954 commit
- git.kernel.org/stable/c/3a905e183c047577b154f08a78ac3039e9454703 commit
- git.kernel.org/stable/c/98ea0039dbfdd00e5cc1b9a8afa40434476c0955 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-2026-23235 updated
kernel: f2fs: fix out-of-bounds access in sysfs attribute read/write
-
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.18% chance of exploitation in the next 30 days, higher than 7% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/e85a99db9ab85dfc30d93b0ca0e9156f3127f55a
patch
-
git.kernel.org
/stable/c/438a405fbad6882df0e34b3e1a16839a71f04240
patch
-
git.kernel.org
/stable/c/6a6c07a9b49e43f0df42d7118fc76aa555c73d98
patch
-
git.kernel.org
/stable/c/eebd72cff518ac87e660aefb8a41224bd88c32ce
patch
-
git.kernel.org
/stable/c/4ef30b9f1641c9e877792df6b049f1cf507d002d
patch
-
git.kernel.org
/stable/c/d4a594dd952df123cbdcdee9b9640d9d55e4a954
patch
-
git.kernel.org
/stable/c/3a905e183c047577b154f08a78ac3039e9454703
patch
-
git.kernel.org
/stable/c/98ea0039dbfdd00e5cc1b9a8afa40434476c0955
patch
Sources
- CVE List CVE-2026-23235
- NVD CVE-2026-23235
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.