# CVE-2024-50116: nilfs2: fix kernel bug due to missing clearing of buffer delay flag

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-11-05T17:10:47.336Z
- Modified: 2026-06-17T08:03:37.763Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

nilfs2: fix kernel bug due to missing clearing of buffer delay flag

Syzbot reported that after nilfs2 reads a corrupted file system image
and degrades to read-only, the BUG_ON check for the buffer delay flag
in submit_bh_wbc() may fail, causing a kernel bug.

This is because the buffer delay flag is not cleared when clearing the
buffer state flags to discard a page/folio or a buffer head. So, fix
this.

This became necessary when the use of nilfs2's own page clear routine
was expanded.  This state inconsistency does not occur if the buffer
is written normally by log writing.

(As written by CVE List.)

## Affected

- Linux Linux: from 8c26c4e2694a163d525976e804d81cd955bbb40c before 033bc52f35868c2493a2d95c56ece7fc155d7cb3; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 412a30b1b28d6073ba29c46a2b0f324c5936293f; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 9f2ab98371c2f2488bf3bf3f9b2a73510545e9c1; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 822203f6355f4b322d21e7115419f6b98284be25; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 27524f65621f490184f2ace44cd8e5f3685af4a3; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 743c78d455e784097011ea958b27396001181567; from 8c26c4e2694a163d525976e804d81cd955bbb40c before c6f58ff2d4c552927fe9a187774e668ebba6c7aa; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 6ed469df0bfbef3e4b44fca954a781919db9f7ab; 3.10 (not affected: before 3.10; from 4.19.323 up to 4.19.*; from 5.4.285 up to 5.4.*; from 5.10.229 up to 5.10.*; from 5.15.170 up to 5.15.*; from 6.1.115 up to 6.1.*; from 6.6.59 up to 6.6.*; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 3.10 before 4.19.323; from 4.20 before 5.4.285; from 5.5 before 5.10.229; from 5.11 before 5.15.170; from 5.16 before 6.1.115; from 6.2 before 6.6.59; from 6.7 before 6.11.6; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/033bc52f35868c2493a2d95c56ece7fc155d7cb3> (patch)
- <https://git.kernel.org/stable/c/412a30b1b28d6073ba29c46a2b0f324c5936293f> (patch)
- <https://git.kernel.org/stable/c/9f2ab98371c2f2488bf3bf3f9b2a73510545e9c1> (patch)
- <https://git.kernel.org/stable/c/822203f6355f4b322d21e7115419f6b98284be25> (patch)
- <https://git.kernel.org/stable/c/27524f65621f490184f2ace44cd8e5f3685af4a3> (patch)
- <https://git.kernel.org/stable/c/743c78d455e784097011ea958b27396001181567> (patch)
- <https://git.kernel.org/stable/c/c6f58ff2d4c552927fe9a187774e668ebba6c7aa> (patch)
- <https://git.kernel.org/stable/c/6ed469df0bfbef3e4b44fca954a781919db9f7ab> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-50116 · Whole record: https://cve.day/CVE-2024-50116.json · Rebuilt by cve.day 2026-11-25T22:58:47.783Z
