SEGV in NSC_DeriveKey
Categories
(NSS :: Libraries, defect, P3)
Tracking
(firefox-esr115 unaffected, firefox-esr128 unaffected, firefox131 wontfix, firefox132 wontfix, firefox133 fixed)
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox-esr128 | --- | unaffected |
firefox131 | --- | wontfix |
firefox132 | --- | wontfix |
firefox133 | --- | fixed |
People
(Reporter: coffeys, Assigned: jschanck)
References
(Regression)
Details
(Keywords: regression, reporter-external, sec-low, Whiteboard: [nss-nofx][post-critsmash-triage][adv-main133+])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Steps to reproduce:
Called C_DeriveKey and passed NULL for phKey value:
NSC_DeriveKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey,
CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount,
CK_OBJECT_HANDLE_PTR phKey)
Actual results:
SEGV due to libsoftokn3.so with NSS >= 3.103
libsoftokn3.so+0x305cd
issue in lib/softoken/pkcs11c.c
With recent code change in NSC_DeriveKey function, there's an assumption that phKey variable is non-NULL
Presuming it's non-NULL seems to be an issue. The PKCS#11 v3.0 current mechanism specification hints that phKey should be NULL for certain mechanisms :
"the parameter phKey passed to C_DeriveKey is unnecessary, and should be a NULL_PTR." under "2.39.6 Key and MAC derivation"
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 1•11 months ago
|
||
Assignee | ||
Comment 2•11 months ago
|
||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•10 months ago
|
Updated•9 months ago
|
Comment 3•9 months ago
|
||
Updated•9 months ago
|
Updated•4 months ago
|
Description
•