CVE-2023-40546: Shim: out-of-bounds read printing error messages

Published Oct 2, 2023
·
Updated

A flaw was found in Shim when an error happened while creating a new ESL variable. If Shim fails to create the new variable, it tries to print an error message to the user; however, the number of parameters used by the logging function doesn't match the format string used by it, leading to a crash under certain circumstances.

Other sources

A NULL pointer dereference error exists in mirroroneesl() at mok.c. If shim fails to create a new ESL variable it tries to log an error message, however one of the variables used in the LogError() function doesn't match the format string and additionally it may be NULL. A successful attack may lead shim to crash resulting in a Denial-of-Service.

Red Hat

rhboot shim is vulnerable to a denial of service, caused by a NULL pointer dereference f;aw in the mirroroneesl() function in mok.c. By sending a specially crafted request, a local attacker could exploit this vulnerability to cause the application to crash.

IBM

Shim: out-of-bounds read printing error messages

Microsoft

Affected Software

18 affected componentsFixes available
redhat/shim<15.8
15.8
redhat Shim<15.8
Fedoraproject Fedora=39
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
IBM R10.0<=10.1.3.0 10.0.245.0
IBM R9.4<=89.42.18.0 89.41.25.0 89.40.83.0
IBM R9.3<=89.33.52.0 89.33.45.0
Microsoft cbl2 shim-unsigned-x64 15.8-1
Microsoft cbl2 shim 15.8-1
Microsoft azl3 shim-unsigned-aarch64 15.4-2
Microsoft cbl2 shim-unsigned-x64 15.4-2
Microsoft azl3 shim-unsigned-x64 15.8-5
Microsoft azl3 shim-unsigned-aarch64 15.8-5
Microsoft azl3 shim 15.4-2
Microsoft azl3 shim 15.8-5
Microsoft azl3 shim-unsigned-x64 15.4-3
Microsoft cbl2 shim 15.4-2

Event History

Jan 29, 2024
CVE Published
via MITRE·04:29 PM
Data Sourced
via MITRE·04:29 PM
DescriptionSeverityWeakness
Sep 11, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-40546?

CVE-2023-40546 is considered a moderate severity vulnerability due to its potential impact on system security.

2

How do I fix CVE-2023-40546?

To fix CVE-2023-40546, update Shim to version 15.8 or later on affected systems.

3

Which versions of Shim are affected by CVE-2023-40546?

CVE-2023-40546 affects Shim versions prior to 15.8.

4

What software is impacted by CVE-2023-40546?

CVE-2023-40546 impacts Red Hat Shim and various versions of Red Hat Enterprise Linux and Fedora.

5

Is there a workaround for CVE-2023-40546?

Currently, there are no documented workarounds for CVE-2023-40546; upgrading is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203