You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 18f4e12
Browse filesBrowse the repository at this point in the historyBrowse files
fix misaligned access when reading PKCS#11 attributes
CK_ATTRIBUTE.pValue pointers are not guaranteed to be naturally aligned.
Direct casts (`*(CK_KEY_TYPE*)pValue`, `*(CK_BBOOL*)pValue`, etc.)
trigger undefined behavior.
Security impact: partials read from adjacent memory or DoS
Fixed by using `memcpy()` in all attribute parsing paths (extractObjectInformation,
C_CopyObject, C_FindObjectsInit).
Signed-off-by: Shawn C <citypw@hardenedlinux.org>
0 commit comments