# CVE-2024-47757: nilfs2: fix potential oob read in nilfs_btree_check_delete()

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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.33%, higher than 19% of CVEs (2026-11-30)
- Published: 2024-10-21T12:14:20.419Z
- Modified: 2026-06-17T07:57:41.910Z
- Weaknesses: CWE-125
- 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 potential oob read in nilfs_btree_check_delete()

The function nilfs_btree_check_delete(), which checks whether degeneration
to direct mapping occurs before deleting a b-tree entry, causes memory
access outside the block buffer when retrieving the maximum key if the
root node has no entries.

This does not usually happen because b-tree mappings with 0 child nodes
are never created by mkfs.nilfs2 or nilfs2 itself.  However, it can happen
if the b-tree root node read from a device is configured that way, so fix
this potential issue by adding a check for that case.

(As written by CVE List.)

## Affected

- Linux Linux: from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before f3a9859767c7aea758976f5523903d247e585129; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before ed76d381dae125b81d09934e365391a656249da8; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before d20674f31626e0596ae4c1d9401dfb6739b81b58; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before c4f8554996e8ada3be872dfb8f60e93bcf15fb27; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before a8abfda768b9f33630cfbc4af6c4214f1e5681b0; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before 257f9e5185eb6de83377caea686c306e22e871f2; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before a33e967b681e088a125b979975c93e3453e686cd; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before c4cbcc64bb31e67e02940ce060cc77f7180564cf; from 17c76b0104e4a6513983777e1a17e0297a12b0c4 before f9c96351aa6718b42a9f42eaf7adce0356bdb5e8; 2.6.30 (not affected: before 2.6.30; 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.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 2.6.30 before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2

## References

- <https://git.kernel.org/stable/c/f3a9859767c7aea758976f5523903d247e585129>
- <https://git.kernel.org/stable/c/ed76d381dae125b81d09934e365391a656249da8>
- <https://git.kernel.org/stable/c/d20674f31626e0596ae4c1d9401dfb6739b81b58> (patch)
- <https://git.kernel.org/stable/c/c4f8554996e8ada3be872dfb8f60e93bcf15fb27> (patch)
- <https://git.kernel.org/stable/c/a8abfda768b9f33630cfbc4af6c4214f1e5681b0> (patch)
- <https://git.kernel.org/stable/c/257f9e5185eb6de83377caea686c306e22e871f2> (patch)
- <https://git.kernel.org/stable/c/a33e967b681e088a125b979975c93e3453e686cd> (patch)
- <https://git.kernel.org/stable/c/c4cbcc64bb31e67e02940ce060cc77f7180564cf> (patch)
- <https://git.kernel.org/stable/c/f9c96351aa6718b42a9f42eaf7adce0356bdb5e8> (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-47757](https://www.cve.org/CVERecord?id=CVE-2024-47757), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-47757](https://nvd.nist.gov/vuln/detail/CVE-2024-47757), Public domain, modified 2026-06-17

---

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