# smb: client: Fix use-after-free in cifs_fill_dirent

CVE record · `CVE-2025-38051`

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

Published by the CVE Program (CNA: Linux) at 18 Jun 2025, 09:33 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: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before aee067e88d61eb72e966f094e4749c6b14e7008f` (git)
  - affected: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before a24c2f05ac3c5b0aaa539d9d913826d2643dfd0e` (git)
  - affected: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before 1b197931fbc821bc7e9e91bf619400db563e3338` (git)
  - affected: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before c8623231e0edfcccb7cc6add0288fa0f0594282f` (git)
  - affected: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before 73cadde98f67f76c5eba00ac0b72c453383cec8b` (git)
  - affected: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before 9bea368648ac46f8593a780760362e40291d22a9` (git)
  - affected: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before 9c9aafbacc183598f064902365e107b5e856531f` (git)
  - affected: `a364bc0b37f14ffd66c1f982af42990a9d77fa43 to before a7a8fe56e932a36f43e031b398aef92341bf5ea0` (git)
  - affected: `0f3da51e7046e2eb28992ba65c22d058f571356c` (git)
  - affected: `2.6.27.4 to before 2.6.28` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.28`
  - unaffected: `before 2.6.28` (semver)
  - unaffected: `5.4.294 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.238 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.185 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.141 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.93 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.31 to 6.12.*, inclusive` (semver)
  - unaffected: `6.14.9 to 6.14.*, inclusive` (semver)
  - unaffected: `6.15 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.0023, the 14th percentile, on 20 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 18 Jun 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/aee067e88d61eb72e966f094e4749c6b14e7008f>
- <https://git.kernel.org/stable/c/a24c2f05ac3c5b0aaa539d9d913826d2643dfd0e>
- <https://git.kernel.org/stable/c/1b197931fbc821bc7e9e91bf619400db563e3338>
- <https://git.kernel.org/stable/c/c8623231e0edfcccb7cc6add0288fa0f0594282f>
- <https://git.kernel.org/stable/c/73cadde98f67f76c5eba00ac0b72c453383cec8b>
- <https://git.kernel.org/stable/c/9bea368648ac46f8593a780760362e40291d22a9>
- <https://git.kernel.org/stable/c/9c9aafbacc183598f064902365e107b5e856531f>
- <https://git.kernel.org/stable/c/a7a8fe56e932a36f43e031b398aef92341bf5ea0>

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-2025-38051>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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