# hfs: fix OOB Read in \_\_hfs_brec_find

CVE record · `CVE-2022-50581`

- **Identifiers:** `CVE-2022-50581`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 22 Oct 2025
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 22 Oct 2025, 13:23 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8c40f2dbae603ef0bd21e87c63f54ec59fd88256` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c886c10a6eddb99923b315f42bf63f448883ef9a` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2344f17c0a89c181ab1a9fef57fd8c3bddfd6e30` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 90103ccb6e60aa4efe48993d23d6a528472f2233` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 4fd3a11804c8877ff11fec59c5c53f1635331e3e` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 367296925c7625c3969d2a78d7a3e1dee161beb5` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before e9e692917c6e10a7066c7a6d092dcdc3d4e329f3` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before bfc9d8f27f89717431a6aecce42ae230b437433f` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8d824e69d9f3fa3121b2dda25053bae71e2460d2` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.12`
  - unaffected: `before 2.6.12` (semver)
  - unaffected: `4.9.337 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.303 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.270 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.229 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.163 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.86 to 5.15.*, inclusive` (semver)
  - unaffected: `6.0.16 to 6.0.*, inclusive` (semver)
  - unaffected: `6.1.2 to 6.1.*, inclusive` (semver)
  - unaffected: `6.2 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0019, the 8th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 22 Oct 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2022-50581](https://www.cve.org/CVERecord?id=CVE-2022-50581)
- [NVD: CVE-2022-50581](https://nvd.nist.gov/vuln/detail/CVE-2022-50581)

### References from the CNA

- <https://git.kernel.org/stable/c/8c40f2dbae603ef0bd21e87c63f54ec59fd88256>
- <https://git.kernel.org/stable/c/c886c10a6eddb99923b315f42bf63f448883ef9a>
- <https://git.kernel.org/stable/c/2344f17c0a89c181ab1a9fef57fd8c3bddfd6e30>
- <https://git.kernel.org/stable/c/90103ccb6e60aa4efe48993d23d6a528472f2233>
- <https://git.kernel.org/stable/c/4fd3a11804c8877ff11fec59c5c53f1635331e3e>
- <https://git.kernel.org/stable/c/367296925c7625c3969d2a78d7a3e1dee161beb5>
- <https://git.kernel.org/stable/c/e9e692917c6e10a7066c7a6d092dcdc3d4e329f3>
- <https://git.kernel.org/stable/c/bfc9d8f27f89717431a6aecce42ae230b437433f>
- <https://git.kernel.org/stable/c/8d824e69d9f3fa3121b2dda25053bae71e2460d2>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-50581>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-50581/>. Everything for agents: <https://agentprime.io/llms.txt>.
