# CVE-2024-58001: ocfs2: handle a symlink read error correctly

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-02-27T02:11:59.570Z
- Modified: 2026-06-17T08:14:25.100Z
- Assigned by: Linux

## Description

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

ocfs2: handle a symlink read error correctly

Patch series "Convert ocfs2 to use folios".

Mark did a conversion of ocfs2 to use folios and sent it to me as a
giant patch for review ;-)

So I've redone it as individual patches, and credited Mark for the patches
where his code is substantially the same.  It's not a bad way to do it;
his patch had some bugs and my patches had some bugs.  Hopefully all our
bugs were different from each other.  And hopefully Mark likes all the
changes I made to his code!


This patch (of 23):

If we can't read the buffer, be sure to unlock the page before returning.

(As written by CVE List.)

## Affected

- Linux Linux: from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before cd3e22b206189cbb4a94229002141e1529f83746; from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before afa8003f8db62e46c4b171cbf4cec2824148b4f7; from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before 8aee4184c5b79e486598c15aa80687c77f6f6e6e; from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before 6e143eb4ab83c24e7ad3e3d8e7daa241d9c38377; from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before b6833b38984d1e9f20dd80f9ec9050c10d687f30; from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before 52a326f93ceb9348264fddf7bab6e345db69e08c; from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before 5e3b3ec7c3cb5ba5629a766e4f0926db72cf0a1f; from ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 before 2b4c2094da6d84e69b843dd3317902e977bf64bd; 3.5 (not affected: before 3.5; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.78 up to 6.6.*; from 6.12.14 up to 6.12.*; from 6.13.3 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: before 5.4.291; from 5.5 before 5.10.235; from 5.11 before 5.15.179; from 5.16 before 6.1.129; from 6.2 before 6.6.78; from 6.7 before 6.12.14; from 6.13 before 6.13.3

## References

- <https://git.kernel.org/stable/c/cd3e22b206189cbb4a94229002141e1529f83746> (patch)
- <https://git.kernel.org/stable/c/afa8003f8db62e46c4b171cbf4cec2824148b4f7> (patch)
- <https://git.kernel.org/stable/c/8aee4184c5b79e486598c15aa80687c77f6f6e6e> (patch)
- <https://git.kernel.org/stable/c/6e143eb4ab83c24e7ad3e3d8e7daa241d9c38377> (patch)
- <https://git.kernel.org/stable/c/b6833b38984d1e9f20dd80f9ec9050c10d687f30> (patch)
- <https://git.kernel.org/stable/c/52a326f93ceb9348264fddf7bab6e345db69e08c> (patch)
- <https://git.kernel.org/stable/c/5e3b3ec7c3cb5ba5629a766e4f0926db72cf0a1f> (patch)
- <https://git.kernel.org/stable/c/2b4c2094da6d84e69b843dd3317902e977bf64bd> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

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

---

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