cveboard RSS feed

CVE-2022-50731

CVE.org · Published

Historical CVEsJSONAI instructions

Record status
Published
Identifier year (not publication year)
2022
Source publication
Source updated
Imported by cveboard
Source snapshot
cve_2026-10-24_midnight_baseline ·

Plain text

CNA source text (English)

crypto: akcipher - default implementation for setting a private key

In the Linux kernel, the following vulnerability has been resolved: crypto: akcipher - default implementation for setting a private key Changes from v1: * removed the default implementation from set_pub_key: it is assumed that an implementation must always have this callback defined as there are no use case for an algorithm, which doesn't need a public key Many akcipher implementations (like ECDSA) support only signature verifications, so they don't have all callbacks defined. Commit 78a0324f4a53 ("crypto: akcipher - default implementations for request callbacks") introduced default callbacks for sign/verify operations, which just return an error code. However, these are not enough, because before calling sign the caller would likely call set_priv_key first on the instantiated transform (as the in-kernel testmgr does). This function does not have a default stub, so the kernel crashes, when trying to set a private key on an akcipher, which doesn't support signature generation. I've noticed this, when trying to add a KAT vector for ECDSA signature to the testmgr. With this patch the testmgr returns an error in dmesg (as it should) instead of crashing the kernel NULL ptr dereference.

Scoped product and version facts

Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.

Exploitation unknown; this catalogue does not assess exploitation.

Linux

Vendor
Linux
Product
Linux
Platforms
Unknown
Default status
unaffected
Linux · Scoped product and version facts
Version (version)Status (status)Version scheme (versionType)Exclusive end (lessThan)Inclusive end (lessThanOrEqual)Status changes (at → status)
78a0324f4a5328088fea9426cfe1d1851276c475affectedgit95c4e20adc3ea00d1594a2a05d9b187ed12ffa8eUnavailableNone listed
78a0324f4a5328088fea9426cfe1d1851276c475affectedgita1354bdd191d533211b7cb723aa76a66f516f197UnavailableNone listed
78a0324f4a5328088fea9426cfe1d1851276c475affectedgit779a9930f3e152c82699feb389a0e6d6644e747eUnavailableNone listed
78a0324f4a5328088fea9426cfe1d1851276c475affectedgit85bc736a18b872f54912e8bb70682d11770aece0UnavailableNone listed
78a0324f4a5328088fea9426cfe1d1851276c475affectedgitf9058178597059d6307efe96a7916600f8ede08cUnavailableNone listed
78a0324f4a5328088fea9426cfe1d1851276c475affectedgitbc155c6c188c2f0c5749993b1405673d25a80389UnavailableNone listed

Linux

Vendor
Linux
Product
Linux
Platforms
Unknown
Default status
affected
Linux · Scoped product and version facts
Version (version)Status (status)Version scheme (versionType)Exclusive end (lessThan)Inclusive end (lessThanOrEqual)Status changes (at → status)
5.2affectedUnavailableUnavailableUnavailableNone listed
0unaffectedsemver5.2UnavailableNone listed
5.4.220unaffectedsemverUnavailable5.4.*None listed
5.10.150unaffectedsemverUnavailable5.10.*None listed
5.15.75unaffectedsemverUnavailable5.15.*None listed
5.19.17unaffectedsemverUnavailable5.19.*None listed
6.0.3unaffectedsemverUnavailable6.0.*None listed
6.1unaffectedoriginal_commit_for_fixUnavailable*None listed