Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSC: Several Vulnerabilities Regarding to Version 0.20.0 #4289

Closed
CamberLoid opened this issue Nov 8, 2022 · 1 comment
Closed

OpenSC: Several Vulnerabilities Regarding to Version 0.20.0 #4289

CamberLoid opened this issue Nov 8, 2022 · 1 comment
Labels
security Topic/issue involves a security issue/fixed

Comments

@CamberLoid
Copy link
Member

CVE IDs

CVE-2021-{42778..42782}, CVE-2020-{26570..26572}

Other security advisory IDs

Description

A total of 8 CVEs for OpenSC (opensc) were found and fixed between version 0.20.0 (current) and 0.22.0 (latest).

  • CVE-2020-26570: Heap-based buffer overflow in sc_oberthur_read_file. (CWE-787 Out-of-bounds write)
  • CVE-2020-26571: Stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init.
  • CVE-2020-26572: Stack-based buffer overflow in tcos_decipher.
  • CVE-2021-42778: Heap double-free in sc_pkcs15_free_tokeninfo.
  • CVE-2021-42779: Heap use-after-free sc_file_valid.
  • CVE-2021-42780: Use-after-return in insert_pin function that could potentially crash programs using the library.
  • CVE-2021-42781: Heap buffer overflow in pkcs15-oberthur.c.
  • CVE-2021-42782: Stack buffer overflow in various place.

Patches

An update to 0.22.0 or later will solve these problems.

PoC(s)

N/A

@CamberLoid CamberLoid added the security Topic/issue involves a security issue/fixed label Nov 8, 2022
CamberLoid added a commit that referenced this issue Nov 8, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
CamberLoid added a commit that referenced this issue Nov 10, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
CamberLoid added a commit that referenced this issue Nov 11, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
CamberLoid added a commit that referenced this issue Nov 12, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
CamberLoid added a commit that referenced this issue Nov 23, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
CamberLoid added a commit that referenced this issue Nov 23, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
CamberLoid added a commit that referenced this issue Nov 27, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
CamberLoid added a commit that referenced this issue Nov 27, 2022
* Fixes CVEs. See issue for details.

Signed-off-by: Camber Huang <camber@poi.science>
@CamberLoid
Copy link
Member Author

Fixed via #4290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Topic/issue involves a security issue/fixed
Projects
None yet
Development

No branches or pull requests

1 participant