CVE-2025-40268
publishedcifs: client: fix memory leak in smb3_fs_context_parse_param
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxaf1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 299bc05e1475a4aa1eb985ade8f39e68c1bba9b9 · af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 868fc62811d3fabcf5685e14f36377a855d5412d · af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 48c17341577e25a22feb13d694374b61d974edbc · af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 4515743cc7a42e1d67468402a6420c195532a6fa · af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < e8c73eb7db0a498cd4b22d2819e6ab1a6f506bd6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.11 (affected) · 0 to < 5.11 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.117 through 6.6.* (unaffected · semver) · 6.12.59 through 6.12.* (unaffected · semver) · 6.17.9 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1430 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: cifs: client: fix memory leak in smb3_fs_context_parse_param The user calls fsconfig twice, but when the program exits, free() only frees ctx->source for the second fsconfig, not the first. Regarding fc->source, there is no code in the fs context related to its memory reclamation. To fix this memory leak, release the source memory corresponding to ctx or fc before each parsing. syzbot reported: BUG: memory leak unreferenced object 0xffff888128afa360 (size 96): backtrace (crc 79c9c7ba): kstrdup+0x3c/0x80 mm/util.c:84 smb3_fs_context_parse_param+0x229b/0x36c0 fs/smb/client/fs_context.c:1444 BUG: memory leak unreferenced object 0xffff888112c7d900 (size 96): backtrace (crc 79c9c7ba): smb3_fs_context_fullpath+0x70/0x1b0 fs/smb/client/fs_context.c:629 smb3_fs_context_parse_param+0x2266/0x36c0 fs/smb/client/fs_context.c:1438
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 299bc05e1475a4aa1eb985ade8f39e68c1bba9b9 (affected · git)af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 868fc62811d3fabcf5685e14f36377a855d5412d (affected · git)af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 48c17341577e25a22feb13d694374b61d974edbc (affected · git)af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < 4515743cc7a42e1d67468402a6420c195532a6fa (affected · git)af1a3d2ba9543e99d78914d8fb88b61d0531d9a1 to < e8c73eb7db0a498cd4b22d2819e6ab1a6f506bd6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.11 (affected)0 to < 5.11 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.117 through 6.6.* (unaffected · semver)6.12.59 through 6.12.* (unaffected · semver)6.17.9 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/299bc05e1475a4aa1eb985ade8f39e68c1bba9b9
- https://git.kernel.org/stable/c/4515743cc7a42e1d67468402a6420c195532a6fa
- https://git.kernel.org/stable/c/48c17341577e25a22feb13d694374b61d974edbc
- https://git.kernel.org/stable/c/868fc62811d3fabcf5685e14f36377a855d5412d
- https://git.kernel.org/stable/c/e8c73eb7db0a498cd4b22d2819e6ab1a6f506bd6
Provider assertions
1Linux · cna
cifs: client: fix memory leak in smb3_fs_context_parse_param
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8000a6efce6bf97796502e79cb887a65ed28f4132b62643858f477fd6b6fc5a2
- Ingested
- 30 Oct 2026, 12:31:36 UTC
- Source record
- Official CVE record