# CVE-2025-68767: hfsplus: Verify inode mode when loading from disk

- Severity: not scored yet
- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-01-13T15:28:46.382Z
- Modified: 2026-06-17T09:59:33.223Z
- Assigned by: Linux

## Description

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

hfsplus: Verify inode mode when loading from disk

syzbot is reporting that S_IFMT bits of inode->i_mode can become bogus when
the S_IFMT bits of the 16bits "mode" field loaded from disk are corrupted.

According to [1], the permissions field was treated as reserved in Mac OS
8 and 9. According to [2], the reserved field was explicitly initialized
with 0, and that field must remain 0 as long as reserved. Therefore, when
the "mode" field is not 0 (i.e. no longer reserved), the file must be
S_IFDIR if dir == 1, and the file must be one of S_IFREG/S_IFLNK/S_IFCHR/
S_IFBLK/S_IFIFO/S_IFSOCK if dir == 0.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6f768724aabd5b321c5b8f15acdca11e4781cf32; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d92333c7a35856e419500e7eed72dac1afa404a5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 001f44982587ad462b3002ee40c75e8df67d597d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 05ec9af3cc430683c97f76027e1c55ac6fd25c59; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before edfb2e602b5ba5ca6bf31cbac20b366efb72b156; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 91f114bffa36ce56d0e1f60a0a44fc09baaefc79; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 005d4b0d33f6b4a23d382b7930f7a96b95b01f39; 2.6.12 (not affected: before 2.6.12; from 5.10.248 up to 5.10.*; from 5.15.198 up to 5.15.*; from 6.1.160 up to 6.1.*; from 6.6.120 up to 6.6.*; from 6.12.64 up to 6.12.*; from 6.18.3 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/6f768724aabd5b321c5b8f15acdca11e4781cf32>
- <https://git.kernel.org/stable/c/d92333c7a35856e419500e7eed72dac1afa404a5>
- <https://git.kernel.org/stable/c/001f44982587ad462b3002ee40c75e8df67d597d>
- <https://git.kernel.org/stable/c/05ec9af3cc430683c97f76027e1c55ac6fd25c59>
- <https://git.kernel.org/stable/c/edfb2e602b5ba5ca6bf31cbac20b366efb72b156>
- <https://git.kernel.org/stable/c/91f114bffa36ce56d0e1f60a0a44fc09baaefc79>
- <https://git.kernel.org/stable/c/005d4b0d33f6b4a23d382b7930f7a96b95b01f39>

## Sources

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

---

Page: https://cve.day/CVE-2025-68767 · Whole record: https://cve.day/CVE-2025-68767.json · Rebuilt by cve.day 2026-11-25T22:59:10.522Z
