Vulnerability · Published Jan 29, 2024 · Assigned by redhat
CVE-2023-40546Shim: out-of-bounds read printing error messages
Medium 6.2
In plain English
A medium-severity null pointer dereference in Red Hat Enterprise Linux 7 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | shim-aa64 | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux:9 | shim-aa64 | 15.8-4.el9_3.alma.1 | ALSA-2024:1903 |
| AlmaLinux:8 | shim-ia32 | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux:8 | shim-x64 | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux:9 | shim-x64 | 15.8-4.el9_3.alma.1 | ALSA-2024:1903 |
| Debian:12 | shim | 15.8-1~deb12u1 | DEBIAN-CVE-2023-40546 |
| Debian:13 | shim | 15.8-1 | DEBIAN-CVE-2023-40546 |
| Debian:14 | shim | 15.8-1 | DEBIAN-CVE-2023-40546 |
| Ubuntu:22.04:LTS | shim | 15.8-0ubuntu1 | UBUNTU-CVE-2023-40546 |
| Ubuntu:24.04:LTS | shim | 15.8-0ubuntu1 | UBUNTU-CVE-2023-40546 |
| Ubuntu:22.04:LTS | shim-signed | 1.51.4 | UBUNTU-CVE-2023-40546 |
| Ubuntu:24.04:LTS | shim-signed | 1.58 | UBUNTU-CVE-2023-40546 |
Affected products (as reported)
Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- RHSA-2024:1834 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1835 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1873 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1876 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1883 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1902 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1903 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1959 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:2086 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-40546 vdb-entry, x_refsource_REDHAT
- RHBZ#2241796 issue-tracking, x_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2024/05/msg00009.html x_transferred