Red Hat Enterprise Linux 8: Use After Free
CVE-2023-5178 is a high-severity use after free vulnerability in Red Hat Enterprise Linux 8 from Red Hat, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 9.62% chance of exploitation within 30 days, which is in the top 4.44% of all scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update SIMATIC S7-1500 TM MFP - GNU/Linux subsystem to V1.1 or a later version.
- Update Linux Kernel to 5.4.260 or 5.10.199 or 5.15.137 or 6.1.60, whichever matches your release line, or a later version.
- Read the advisory on lore.kernel.org for workarounds and exact fixed builds.
Affected products and versions
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 8.8 | High | CNA (redhat.com) |
| CVSS 3.1 | 8.8 | High | NVD |
Official description
A use-after-free vulnerability was found in drivers/nvme/target/tcp.c` in `nvmet_tcp_free_crypto` due to a logical bug in the NVMe/TCP subsystem in the Linux kernel. This issue may allow a malicious user to cause a use-after-free and double-free problem, which may permit remote code execution or lead to local privilege escalation.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.
How developers prevent this class of flaw
- Choose a language that provides automatic memory management.
- When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Advisories
- lore.kernel.org/linux-nvme/[email protected]/Mailing List
Third-party and government advisories
- access.redhat.com/errata/RHSA-2023:7370Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7379Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7418Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7548Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7549Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7551Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7554Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7557Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7559Third Party Advisory
- access.redhat.com/errata/RHSA-2024:0340Third Party Advisory
- access.redhat.com/errata/RHSA-2024:0378Third Party Advisory
- access.redhat.com/errata/RHSA-2024:0386Third Party Advisory
- access.redhat.com/errata/RHSA-2024:0412Third Party Advisory
- access.redhat.com/errata/RHSA-2024:0431Third Party Advisory
- access.redhat.com/errata/RHSA-2024:0432Third Party Advisory
Other references
Other vulnerabilities in Red Hat Enterprise Linux 8
- 7.8 High severity
- 7.5 High severity
- 7.5 High severity
- 7.9 High severity
- 7.3 High severity
- 7.5 High severity
Recent Use After Free vulnerabilities
- 8.8 High severity
- 8.8 High severity
- 8.8 High severity
- 8.8 High severity
- 8.8 High severity
- 7.8 High severity
Spotted an error? Tell us.