# CVE-2022-50519: nilfs2: replace WARN_ONs by nilfs_error for checkpoint acquisition failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-07T15:19:13.844Z
- Modified: 2026-06-17T05:23:42.737Z
- Assigned by: Linux

## Description

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

nilfs2: replace WARN_ONs by nilfs_error for checkpoint acquisition failure

If creation or finalization of a checkpoint fails due to anomalies in the
checkpoint metadata on disk, a kernel warning is generated.

This patch replaces the WARN_ONs by nilfs_error, so that a kernel, booted
with panic_on_warn, does not panic.  A nilfs_error is appropriate here to
handle the abnormal filesystem condition.

This also replaces the detected error codes with an I/O error so that
neither of the internal error codes is returned to callers.

(As written by CVE List.)

## Affected

- Linux Linux: from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before b63026b5e13040cd5afa11769dd0d9e1504b031a; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before ae16440c44ae2acda6d72aff9d74eccf8967dae5; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before bf98be80cbe3b4e6c86c36ed00457389aca3eb15; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before 259c0f68168ac6a598db3486597b10e74d625db0; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before 8a18fdc5ae8e6d7ac33c6ee0a2e5f9f1414ef412; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before c0c3d3d3ea41cb5228ee90568bb953f9a56c3227; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before 090fcfb6edeb9367a915b2749e2bd1f8b48d8898; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before 5c0776b5bc31de7cd28afb558fae37a20f33602e; from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 before 723ac751208f6d6540191689cfbf6c77135a7a1b; 2.6.30 (not affected: before 2.6.30; from 4.9.331 up to 4.9.*; from 4.14.296 up to 4.14.*; from 4.19.262 up to 4.19.*; from 5.4.218 up to 5.4.*; from 5.10.148 up to 5.10.*; from 5.15.74 up to 5.15.*; from 5.19.16 up to 5.19.*; from 6.0.2 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 2.6.30 before 4.9.331; from 4.10 before 4.14.296; from 4.15 before 4.19.262; from 4.20 before 5.4.218; from 5.5 before 5.10.148; from 5.11 before 5.15.74; from 5.16 before 5.19.16; from 6.0 before 6.0.2

## References

- <https://git.kernel.org/stable/c/b63026b5e13040cd5afa11769dd0d9e1504b031a> (patch)
- <https://git.kernel.org/stable/c/ae16440c44ae2acda6d72aff9d74eccf8967dae5> (patch)
- <https://git.kernel.org/stable/c/bf98be80cbe3b4e6c86c36ed00457389aca3eb15> (patch)
- <https://git.kernel.org/stable/c/259c0f68168ac6a598db3486597b10e74d625db0> (patch)
- <https://git.kernel.org/stable/c/8a18fdc5ae8e6d7ac33c6ee0a2e5f9f1414ef412> (patch)
- <https://git.kernel.org/stable/c/c0c3d3d3ea41cb5228ee90568bb953f9a56c3227> (patch)
- <https://git.kernel.org/stable/c/090fcfb6edeb9367a915b2749e2bd1f8b48d8898> (patch)
- <https://git.kernel.org/stable/c/5c0776b5bc31de7cd28afb558fae37a20f33602e> (patch)
- <https://git.kernel.org/stable/c/723ac751208f6d6540191689cfbf6c77135a7a1b> (patch)

## Sources

- CVE List: [CVE-2022-50519](https://www.cve.org/CVERecord?id=CVE-2022-50519), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50519](https://nvd.nist.gov/vuln/detail/CVE-2022-50519), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50519 · Whole record: https://cve.day/CVE-2022-50519.json · Rebuilt by cve.day 2026-11-25T22:58:21.254Z
