CVE-2022-50731
Null Pointer Dereference in Linux Kernel akcipher Private Key Handling
Publication date: 2025-12-24
Last updated on: 2025-12-24
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's crypto subsystem, specifically in the akcipher module's default implementation for setting a private key. Some akcipher algorithms, like ECDSA, only support signature verification and do not implement all required callbacks, including set_priv_key. When the kernel tries to set a private key on such an akcipher transform that lacks this callback, it results in a kernel crash due to a NULL pointer dereference. The patch fixes this by removing the default implementation from set_pub_key and ensuring that an error is returned instead of crashing when set_priv_key is called on unsupported algorithms.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash when attempting to set a private key on certain akcipher algorithms that do not support signature generation. This can lead to system instability or denial of service, as the kernel encounters a NULL pointer dereference and crashes instead of handling the error gracefully.