Gửi #956910: OpenSC >= 0.12.2 up to and including 0.27.1 (latest release, unfixed; fix approved in PR #3812, pending merge) Buffer Overflow (stack, CWE-121)thông tin

tiêu đềOpenSC >= 0.12.2 up to and including 0.27.1 (latest release, unfixed; fix approved in PR #3812, pending merge) Buffer Overflow (stack, CWE-121)
Mô tảIn src/libopensc/card-setcos.c, setcos_construct_fci_44() copies file->type_attr, sec_attr and prop_attr into a fixed 64-byte stack buffer without length validation. Attributes longer than 64 bytes (e.g. from a malicious smart card or corrupted profile) cause a stack buffer overflow write, confirmed with AddressSanitizer via the fuzz_pkcs15init harness. All versions from 0.12.2 through 0.27.1 (latest release) are affected. The fix has been approved by the OpenSC maintainer and is pending merge (https://github.com/OpenSC/OpenSC/pull/3812).
Nguồn⚠️ https://github.com/OpenSC/OpenSC/pull/3812
Người dùng
 zzxzzb (UID 95450)
Đệ trình02/09/2026 13:09 (cách đây 29 ngày)
Kiểm duyệt30/09/2026 21:06 (28 days later)
Trạng tháiđược chấp nhận
Mục VulDB412343 [OpenSC đến 0.27.1 card-setcos.c setcos_construct_fci_44 type_attr tràn bộ đệm]
điểm20

Do you want to use VulDB in your project?

Use the official API to access entries easily!