# CVE-2023-53214: f2fs: fix to avoid potential memory corruption in \_\_update\_iostat\_latency()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 10, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2025-09-15T14:21:42.331Z
- **Modified:** 2026-08-05T09:13:07.520Z

## Who should check

- Anyone running Linux \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< aa4d726af72a21732ce120484e0b1240674a13b3; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 22ddbbff116ee7dce5431feb1c0f36a507d2d68d; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 20b4f3de0f3932f71b4a8daf0671e517a8d98022; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to avoid potential memory corruption in \_\_update\_iostat\_latency()

Add iotype sanity check to avoid potential memory corruption.
This is to fix the compile error below:

fs/f2fs/iostat.c:231 \_\_update\_iostat\_latency() error: buffer overflow
'io\_lat-\>peak\_lat\[type\]' 3 \<= 3

vim +228 fs/f2fs/iostat.c

  211  static inline void \_\_update\_iostat\_latency(struct bio\_iostat\_ctx
	\*iostat\_ctx,
  212					enum iostat\_lat\_type type)
  213  {
  214		unsigned long ts\_diff;
  215		unsigned int page\_type = iostat\_ctx-\>type;
  216		struct f2fs\_sb\_info \*sbi = iostat\_ctx-\>sbi;
  217		struct iostat\_lat\_info \*io\_lat = sbi-\>iostat\_io\_lat;
  218		unsigned long flags;
  219
  220		if (!sbi-\>iostat\_enable)
  221			return;
  222
  223		ts\_diff = jiffies - iostat\_ctx-\>submit\_ts;
  224		if (page\_type \>= META\_FLUSH)
                                 ^^^^^^^^^^

  225			page\_type = META;
  226
  227		spin\_lock\_irqsave(&sbi-\>iostat\_lat\_lock, flags);
 @228		io\_lat-\>sum\_lat\[type\]\[page\_type\] += ts\_diff;
                                      ^^^^^^^^^
Mixup between META\_FLUSH and NR\_PAGE\_TYPE leads to memory corruption.

## Affected and fixed versions

- Linux: \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< aa4d726af72a21732ce120484e0b1240674a13b3; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 22ddbbff116ee7dce5431feb1c0f36a507d2d68d; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 20b4f3de0f3932f71b4a8daf0671e517a8d98022; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53214. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53214.md
Affected: Linux >= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, < aa4d726af72a21732ce120484e0b1240674a13b3; >= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, < 22ddbbff116ee7dce5431feb1c0f36a507d2d68d; >= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, < 20b4f3de0f3932f71b4a8daf0671e517a8d98022; >= a4b6817625e71d5d4aee16c…
Fixed in: Linux 22ddbbff116ee7dce5431feb1c0f36a507d2d68d, Linux 20b4f3de0f3932f71b4a8daf0671e517a8d98022, Linux 0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53214 being exploited?

There is no confirmed exploitation: CVE-2023-53214 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-53214?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-53214?

Linux \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< aa4d726af72a21732ce120484e0b1240674a13b3; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 22ddbbff116ee7dce5431feb1c0f36a507d2d68d; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 20b4f3de0f3932f71b4a8daf0671e517a8d98022; \>= a4b6817625e71d5d4aee16cacf7a7fec077c6dbe, \< 0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592; Linux 5.15.

### Is there a fix for CVE-2023-53214?

Yes. Fixed in Linux 22ddbbff116ee7dce5431feb1c0f36a507d2d68d, Linux 20b4f3de0f3932f71b4a8daf0671e517a8d98022, Linux 0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592. Upgrade Linux to 0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592 or later.

### How do I check if I'm affected by CVE-2023-53214?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/aa4d726af72a21732ce120484e0b1240674a13b3>
- patch: <https://git.kernel.org/stable/c/22ddbbff116ee7dce5431feb1c0f36a507d2d68d>
- patch: <https://git.kernel.org/stable/c/20b4f3de0f3932f71b4a8daf0671e517a8d98022>
- patch: <https://git.kernel.org/stable/c/0dbbf0fb38d5ec5d4138d1aeaeb43d9217b9a592>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53214>

HTML: <https://flawdb.com/CVE-2023-53214> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53214>
