# CVE-2024-49877: ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate

- 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-10-21T18:01:16.788Z
- Modified: 2026-06-17T08:00:38.360Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate

When doing cleanup, if flags without OCFS2_BH_READAHEAD, it may trigger
NULL pointer dereference in the following ocfs2_set_buffer_uptodate() if
bh is NULL.

(As written by CVE List.)

## Affected

- Linux Linux: from 6c150df9c2e80b5cf86f5a0d98beb7390ad63bfc before 190d98bcd61117a78fe185222d162180f061a6ca; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before e68c8323355e8cedfbe0bec7d5a39009f61640b6; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before 61b84013e560382cbe7dd56758be3154d43a3988; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before df944dc46d06af65a75191183d52be017e6b9dbe; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before 01cb2e751cc61ade454c9bc1aaa2eac1f8197112; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before d52c5652e7dcb7a0648bbb8642cc3e617070ab49; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before 46b1edf0536a5291a8ad2337f88c926214b209d9; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before 4846e72ab5a0726e49ad4188b9d9df091ae78c64; from cf76c78595ca87548ca5e45c862ac9e0949c4687 before 33b525cef4cff49e216e4133cc48452e11c0391e; 01f93d5e36753fc4d06ec67f05ce78c9c6f2dd56; 65cbd1279f4b999d56a838344a30642db24cd215; 97e1db17bc1ef4c2e1789bc9323c7be44fba53f8; and 5 more (not affected: before 4.20; from 4.19.323 up to 4.19.*; from 5.4.285 up to 5.4.*; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 4.20 before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.55; from 6.7 before 6.10.14; from 6.11 before 6.11.3; 4.4.204; 4.9.204; 4.14.157; 4.19.87

## References

- <https://git.kernel.org/stable/c/190d98bcd61117a78fe185222d162180f061a6ca>
- <https://git.kernel.org/stable/c/e68c8323355e8cedfbe0bec7d5a39009f61640b6>
- <https://git.kernel.org/stable/c/61b84013e560382cbe7dd56758be3154d43a3988> (patch)
- <https://git.kernel.org/stable/c/df944dc46d06af65a75191183d52be017e6b9dbe> (patch)
- <https://git.kernel.org/stable/c/01cb2e751cc61ade454c9bc1aaa2eac1f8197112> (patch)
- <https://git.kernel.org/stable/c/d52c5652e7dcb7a0648bbb8642cc3e617070ab49> (patch)
- <https://git.kernel.org/stable/c/46b1edf0536a5291a8ad2337f88c926214b209d9> (patch)
- <https://git.kernel.org/stable/c/4846e72ab5a0726e49ad4188b9d9df091ae78c64> (patch)
- <https://git.kernel.org/stable/c/33b525cef4cff49e216e4133cc48452e11c0391e> (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-49877](https://www.cve.org/CVERecord?id=CVE-2024-49877), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-49877](https://nvd.nist.gov/vuln/detail/CVE-2024-49877), Public domain, modified 2026-06-17

---

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