{"id":"CVE-2026-45959","revision":"c5b3924cb22b41d6bae38cb073523306","records":[{"revision":"c5b3924cb22b41d6bae38cb073523306","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-45959","aliases":[],"title":"crypto: ccp - Fix a crash due to incorrect cleanup usage of kfree","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccp - Fix a crash due to incorrect cleanup usage of kfree\n\nAnnotating a local pointer variable, which will be assigned with the\nkmalloc-family functions, with the `__cleanup(kfree)` attribute will\nmake the address of the local variable, rather than the address returned\nby kmalloc, passed to kfree directly and lead to a crash due to invalid\ndeallocation of stack address. According to other places in the repo,\nthe correct usage should be `__free(kfree)`. The code coincidentally\ncompiled because the parameter type `void *` of kfree is compatible with\nthe desired type `struct { ... } **`.","state":0,"publishedAt":"2026-05-27T12:18:16.039+00:00","modifiedAt":"2026-10-19T19:26:40.585+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/crypto/ccp/ccp-ops.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"a71475582ada92ba021852bf3c2b40ab3718549b\",\n                            \"lessThan\": \"9a3ace9b010ffd8c422c97844ae152f7c53d6b18\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"a71475582ada92ba021852bf3c2b40ab3718549b\",\n                            \"lessThan\": \"90f9090e3e744a8fe3bb6fa0e61f577347728b0b\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"a71475582ada92ba021852bf3c2b40ab3718549b\",\n                            \"lessThan\": \"d5abcc33ee76bc26d58b39dc1a097e43a99dd438\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/crypto/ccp/ccp-ops.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.17\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.17\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.14\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.19.4\",\n                            \"lessThanOrEqual\": \"6.19.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.0\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/9a3ace9b010ffd8c422c97844ae152f7c53d6b18","https://git.kernel.org/stable/c/90f9090e3e744a8fe3bb6fa0e61f577347728b0b","https://git.kernel.org/stable/c/d5abcc33ee76bc26d58b39dc1a097e43a99dd438"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-45959","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-45959","identifiers":["CVE-2026-45959"]},"retained":false,"historicalAffected":[]}],"coverage":[]}