{"id":"CVE-2022-49541","state":"PUBLISHED","title":"cifs: fix potential double free during failed mount","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: fix potential double free during failed mount\n\nRHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=2088799","publishedAt":"2025-02-26T02:13:56.496Z","updatedAt":"2026-08-05T08:55:31.111Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"ce0008a0e410cdd95f0d8cd81b2902ec10a660c4","versionType":"git"},{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"9a167fc440e5693c1cdd7f07071e05658bd9d89d","versionType":"git"},{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"ee71f8f1cd3c8c4a251fd3e8abc89215ae3457cb","versionType":"git"},{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"8378a51e3f8140f60901fb27208cc7a6e47047b5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cifs/cifsfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.46","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.14","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.3","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cifs/cifsfs.c"]}],"references":["https://git.kernel.org/stable/c/ce0008a0e410cdd95f0d8cd81b2902ec10a660c4","https://git.kernel.org/stable/c/9a167fc440e5693c1cdd7f07071e05658bd9d89d","https://git.kernel.org/stable/c/ee71f8f1cd3c8c4a251fd3e8abc89215ae3457cb","https://git.kernel.org/stable/c/8378a51e3f8140f60901fb27208cc7a6e47047b5"],"weaknesses":["CWE-415"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49541.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49541","state":"PUBLISHED","datePublished":"2025-02-26T02:13:56.496Z","dateUpdated":"2026-08-05T08:55:31.111Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:08:31.589Z"},"containers":{"cna":{"title":"cifs: fix potential double free during failed mount","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: fix potential double free during failed mount\n\nRHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=2088799"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"ce0008a0e410cdd95f0d8cd81b2902ec10a660c4","versionType":"git"},{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"9a167fc440e5693c1cdd7f07071e05658bd9d89d","versionType":"git"},{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"ee71f8f1cd3c8c4a251fd3e8abc89215ae3457cb","versionType":"git"},{"version":"d17abdf7566566fc402c31899b353044a7ff3cf4","status":"affected","lessThan":"8378a51e3f8140f60901fb27208cc7a6e47047b5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cifs/cifsfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.46","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.14","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.3","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cifs/cifsfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ce0008a0e410cdd95f0d8cd81b2902ec10a660c4"},{"url":"https://git.kernel.org/stable/c/9a167fc440e5693c1cdd7f07071e05658bd9d89d"},{"url":"https://git.kernel.org/stable/c/ee71f8f1cd3c8c4a251fd3e8abc89215ae3457cb"},{"url":"https://git.kernel.org/stable/c/8378a51e3f8140f60901fb27208cc7a6e47047b5"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is reached through the local mount path (mount syscall → smb3_get_tree → cifs_smb3_do_mount) or via local DFS automount path walking, not by processing unsolicited remote packets.\nAC:L - An attacker can reliably force the failing mount paths (e.g. controlled SMB target or crafted prefixpath causing cifs_get_root/cifs_read_super failure); the double-free fall-through is deterministic once hit, not dependent on uncontrolled conditions.\nPR:L - Although cifs lacks FS_USERNS_MOUNT so a direct mount needs CAP_SYS_ADMIN, unprivileged users can still reach cifs_smb3_do_mount via DFS automount (vfs_submount) on an already-mounted share, and CIFS mounts are commonly invoked by unprivileged users through mount helpers.\nUI:N - The attacker initiates the mount or DFS path access themselves; no separate victim interaction is required.\nS:U - This is standard in-kernel heap corruption within the host kernel's security authority, with no VM/IOMMU/sandbox boundary crossing.\nC:H - A double free of cifs_sb/ctx is heap memory corruption that enables object reuse and arbitrary kernel read primitives.\nI:H - Double free enables heap spraying and corruption of adjacent slab objects, providing write/control-flow hijacking primitives suitable for privilege escalation.\nA:H - The double free produces a use-after-free that can crash the kernel (KASAN UAF/oops), yielding high availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:55:31.111Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.17.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.18.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49541","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-10-01T19:37:38.834933Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-415","lang":"en","type":"CWE","description":"CWE-415 Double Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:46:40.187Z"}}]}}}