# CVE-2022-50581: linux: In the Linux kernel, the following vulnerability has been resolved:  hfs: fix OOB Read in __hfs_brec_find  Syzbot rep...

CVE-2022-50581 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-50581, released October 22, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-50581
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.0018
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 22, 2025

## Description

In the Linux kernel, the following vulnerability has been resolved:  hfs: fix OOB Read in __hfs_brec_find  Syzbot reported a OOB read bug:  ================================================================== BUG: KASAN: slab-out-of-bounds in hfs_strcmp+0x117/0x190 fs/hfs/string.c:84 Read of size 1 at addr ffff88807eb62c4e by task kworker/u4:1/11 CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 6.1.0-rc6-syzkaller-00308-g644e9524388a #0 Workqueue: writeback wb_workfn (flush-7:0) Call Trace:  <TASK>  __dump_stack lib/dump_stack.c:88 [inline]  dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106  print_address_description+0x74/0x340 mm/kasan/report.c:284  print_report+0x107/0x1f0 mm/kasan/report.c:395  kasan_report+0xcd/0x100 mm/kasan/report.c:495  hfs_strcmp+0x117/0x190 fs/hfs/string.c:84  __hfs_brec_find+0x213/0x5c0 fs/hfs/bfind.c:75  hfs_brec_find+0x276/0x520 fs/hfs/bfind.c:138  hfs_write_inode+0x34c/0xb40 fs/hfs/inode.c:462  write_inode fs/fs-writeback.c:1440 [inline]  If the input inode of hfs_write_inode() is incorrect: struct inode   struct hfs_inode_info     struct hfs_cat_key       struct hfs_name         u8 len # len is greater than HFS_NAMELEN(31) which is the maximum length of an HFS filename  OOB read occurred: hfs_write_inode()   hfs_brec_find()     __hfs_brec_find()       hfs_cat_keycmp()         hfs_strcmp() # OOB read occurred due to len is too large  Fix this by adding a Check on len in hfs_write_inode() before calling hfs_brec_find().

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 6.1.4-1 | [DEBIAN-CVE-2022-50581](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50581.md) | Oct 22, 2025 |
| Linux | linux Debian 13.5 (trixie) | 6.1.4-1 | [DEBIAN-CVE-2022-50581](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50581.md) | Oct 22, 2025 |
| Linux | linux Debian 14 | 6.1.4-1 | [DEBIAN-CVE-2022-50581](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50581.md) | Oct 22, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
