# CVE-2022-50270: f2fs: fix the assign logic of iocb

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-15T14:21:06.735Z
- **Modified:** 2026-08-05T08:58:00.180Z

## Who should check

- Anyone running Linux \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< d555aa37566c5c3728f2e52047a9722eae2aed93; \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< b4244ca341ea95c52ee8fa93d04f5af3e584dd37; \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< 0db18eec0d9a7ee525209e31e3ac2f673545b12f
- Anyone running Linux 5.17

## Description

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

f2fs: fix the assign logic of iocb

commit 18ae8d12991b ("f2fs: show more DIO information in tracepoint")
introduces iocb field in 'f2fs\_direct\_IO\_enter' trace event
And it only assigns the pointer and later it accesses its field
in trace print log.

Unable to handle kernel paging request at virtual address ffffffc04cef3d30
Mem abort info:
ESR = 0x96000007
EC = 0x25: DABT (current EL), IL = 32 bits

 pc : trace\_raw\_output\_f2fs\_direct\_IO\_enter+0x54/0xa4
 lr : trace\_raw\_output\_f2fs\_direct\_IO\_enter+0x2c/0xa4
 sp : ffffffc0443cbbd0
 x29: ffffffc0443cbbf0 x28: ffffff8935b120d0 x27: ffffff8935b12108
 x26: ffffff8935b120f0 x25: ffffff8935b12100 x24: ffffff8935b110c0
 x23: ffffff8935b10000 x22: ffffff88859a936c x21: ffffff88859a936c
 x20: ffffff8935b110c0 x19: ffffff8935b10000 x18: ffffffc03b195060
 x17: ffffff8935b11e76 x16: 00000000000000cc x15: ffffffef855c4f2c
 x14: 0000000000000001 x13: 000000000000004e x12: ffff0000ffffff00
 x11: ffffffef86c350d0 x10: 00000000000010c0 x9 : 000000000fe0002c
 x8 : ffffffc04cef3d28 x7 : 7f7f7f7f7f7f7f7f x6 : 0000000002000000
 x5 : ffffff8935b11e9a x4 : 0000000000006250 x3 : ffff0a00ffffff04
 x2 : 0000000000000002 x1 : ffffffef86a0a31f x0 : ffffff8935b10000
 Call trace:
  trace\_raw\_output\_f2fs\_direct\_IO\_enter+0x54/0xa4
  print\_trace\_fmt+0x9c/0x138
  print\_trace\_line+0x154/0x254
  tracing\_read\_pipe+0x21c/0x380
  vfs\_read+0x108/0x3ac
  ksys\_read+0x7c/0xec
  \_\_arm64\_sys\_read+0x20/0x30
  invoke\_syscall+0x60/0x150
  el0\_svc\_common.llvm.1237943816091755067+0xb8/0xf8
  do\_el0\_svc+0x28/0xa0

Fix it by copying the required variables for printing and while at
it fix the similar issue at some other places in the same file.

## Affected and fixed versions

- Linux: \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< d555aa37566c5c3728f2e52047a9722eae2aed93; \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< b4244ca341ea95c52ee8fa93d04f5af3e584dd37; \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< 0db18eec0d9a7ee525209e31e3ac2f673545b12f (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 0db18eec0d9a7ee525209e31e3ac2f673545b12f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50270.md
Affected: Linux >= bd984c03097b8e9b7500cba7378040ac1c697dbb, < d555aa37566c5c3728f2e52047a9722eae2aed93; >= bd984c03097b8e9b7500cba7378040ac1c697dbb, < b4244ca341ea95c52ee8fa93d04f5af3e584dd37; >= bd984c03097b8e9b7500cba7378040ac1c697dbb, < 0db18eec0d9a7ee525209e31e3ac2f673545b12f; Linux 5.17
Fixed in: Linux 0db18eec0d9a7ee525209e31e3ac2f673545b12f

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-2022-50270 being exploited?

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

### How serious is CVE-2022-50270?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50270?

Linux \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< d555aa37566c5c3728f2e52047a9722eae2aed93; \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< b4244ca341ea95c52ee8fa93d04f5af3e584dd37; \>= bd984c03097b8e9b7500cba7378040ac1c697dbb, \< 0db18eec0d9a7ee525209e31e3ac2f673545b12f; Linux 5.17.

### Is there a fix for CVE-2022-50270?

Yes. Fixed in Linux 0db18eec0d9a7ee525209e31e3ac2f673545b12f. Upgrade Linux to 0db18eec0d9a7ee525209e31e3ac2f673545b12f or later.

### How do I check if I'm affected by CVE-2022-50270?

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/d555aa37566c5c3728f2e52047a9722eae2aed93>
- patch: <https://git.kernel.org/stable/c/b4244ca341ea95c52ee8fa93d04f5af3e584dd37>
- patch: <https://git.kernel.org/stable/c/0db18eec0d9a7ee525209e31e3ac2f673545b12f>

## 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-2022-50270>

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