{"id":"CVE-2025-38079","state":"PUBLISHED","title":"crypto: algif_hash - fix double free in hash_accept","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: algif_hash - fix double free in hash_accept\n\nIf accept(2) is called on socket type algif_hash with\nMSG_MORE flag set and crypto_ahash_import fails,\nsk2 is freed. However, it is also freed in af_alg_release,\nleading to slab-use-after-free error.","publishedAt":"2025-06-18T09:33:53.251Z","updatedAt":"2026-10-15T01:06:29.165Z","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":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"5bff312b59b3f2a54ff504e4f4e47272b64f3633","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"bf7bba75b91539e93615f560893a599c1e1c98bf","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"c3059d58f79fdfb2201249c2741514e34562b547","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"f0f3d09f53534ea385d55ced408f2b67059b16e4","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"134daaba93193df9e988524b5cd2f52d15eb1993","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"2f45a8d64fb4ed4830a4b3273834ecd6ca504896","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"0346f4b742345d1c733c977f3a7aef5a6419a967","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"b2df03ed4052e97126267e8c13ad4204ea6ba9b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.38","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.38","versionType":"semver"},{"version":"5.4.294","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.238","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.185","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.141","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.93","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.31","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.9","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]}],"references":["https://git.kernel.org/stable/c/5bff312b59b3f2a54ff504e4f4e47272b64f3633","https://git.kernel.org/stable/c/bf7bba75b91539e93615f560893a599c1e1c98bf","https://git.kernel.org/stable/c/c3059d58f79fdfb2201249c2741514e34562b547","https://git.kernel.org/stable/c/f0f3d09f53534ea385d55ced408f2b67059b16e4","https://git.kernel.org/stable/c/134daaba93193df9e988524b5cd2f52d15eb1993","https://git.kernel.org/stable/c/2f45a8d64fb4ed4830a4b3273834ecd6ca504896","https://git.kernel.org/stable/c/0346f4b742345d1c733c977f3a7aef5a6419a967","https://git.kernel.org/stable/c/b2df03ed4052e97126267e8c13ad4204ea6ba9b6","https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","https://cert-portal.siemens.com/productcert/html/ssa-082556.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38079.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38079","state":"PUBLISHED","datePublished":"2025-06-18T09:33:53.251Z","dateUpdated":"2026-10-15T01:06:29.165Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.980Z"},"containers":{"cna":{"title":"crypto: algif_hash - fix double free in hash_accept","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: algif_hash - fix double free in hash_accept\n\nIf accept(2) is called on socket type algif_hash with\nMSG_MORE flag set and crypto_ahash_import fails,\nsk2 is freed. However, it is also freed in af_alg_release,\nleading to slab-use-after-free error."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"5bff312b59b3f2a54ff504e4f4e47272b64f3633","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"bf7bba75b91539e93615f560893a599c1e1c98bf","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"c3059d58f79fdfb2201249c2741514e34562b547","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"f0f3d09f53534ea385d55ced408f2b67059b16e4","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"134daaba93193df9e988524b5cd2f52d15eb1993","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"2f45a8d64fb4ed4830a4b3273834ecd6ca504896","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"0346f4b742345d1c733c977f3a7aef5a6419a967","versionType":"git"},{"version":"fe869cdb89c95d060c77eea20204d6c91f233b53","status":"affected","lessThan":"b2df03ed4052e97126267e8c13ad4204ea6ba9b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.38","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.38","versionType":"semver"},{"version":"5.4.294","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.238","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.185","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.141","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.93","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.31","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.9","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5bff312b59b3f2a54ff504e4f4e47272b64f3633"},{"url":"https://git.kernel.org/stable/c/bf7bba75b91539e93615f560893a599c1e1c98bf"},{"url":"https://git.kernel.org/stable/c/c3059d58f79fdfb2201249c2741514e34562b547"},{"url":"https://git.kernel.org/stable/c/f0f3d09f53534ea385d55ced408f2b67059b16e4"},{"url":"https://git.kernel.org/stable/c/134daaba93193df9e988524b5cd2f52d15eb1993"},{"url":"https://git.kernel.org/stable/c/2f45a8d64fb4ed4830a4b3273834ecd6ca504896"},{"url":"https://git.kernel.org/stable/c/0346f4b742345d1c733c977f3a7aef5a6419a967"},{"url":"https://git.kernel.org/stable/c/b2df03ed4052e97126267e8c13ad4204ea6ba9b6"}],"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 purely through local syscalls on an AF_ALG socket (socket/bind/sendmsg/accept); there is no network exposure.\nAC:L - The attacker fully controls the algorithm, the MSG_MORE state, and the accept() call, and can retry at will; once the import-failure condition is met the double free is deterministic with no race the attacker cannot control.\nPR:L - alg_create() enforces no capability check, so any unprivileged local user can open the AF_ALG hash socket and reach hash_accept; it does require a local account, so not None.\nUI:N - The entire sequence is driven by the attacker's own process with no victim action required.\nS:U - The corruption stays within the kernel's own security authority; there is no cross-boundary (VM/IOMMU) escape.\nC:H - A slab-use-after-free on a struct sock lets the attacker reclaim and read attacker-influenced freed-object contents, enabling disclosure of kernel memory.\nI:H - The double free/UAF provides a heap-grooming primitive over a freed struct sock that can be leveraged into arbitrary write and control-flow hijack.\nA:H - The double free reliably corrupts the slab allocator and crashes the kernel (oops/panic), taking down the system."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:59:18.103Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"5.4.294"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"5.10.238"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"5.15.185"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.1.141"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.6.93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.12.31"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.14.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T17:33:48.696Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T01:06:29.165Z"},"x_adpType":"supplier"},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-38079","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-06-10T20:41:20.938858Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-11T18:44:11.408Z"}}]}}}