CVE-2023-53181
Last modified
CVE-2023-53181 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: dma-buf/dma-resv: Stop leaking on krealloc() failure Currently dma_resv_get_fences() will leak the previously allocated array if the fence iteration got restarted and the krealloc_array() fails. Free the old array by hand, and make sure we still clear the returned *fences so the caller won't end up accessing freed memory. Some (but not all) of the callers of dma_resv_get_fences() seem to still trawl through the array even when dma_resv_get_fences() failed. EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: dma-buf/dma-resv: Stop leaking on krealloc() failure Currently dma_resv_get_fences() will leak the previously allocated array if the fence iteration got restarted and the krealloc_array() fails. Free the old array by hand, and make sure we still clear the returned *fences so the caller won't end up accessing freed memory. Some (but not all) of the callers of dma_resv_get_fences() seem to still trawl through the array even when dma_resv_get_fences() failed. And let's zero out *num_fences as well for good measure.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.16, < 6.1.42 | — |
| Linux | Linux Kernel | >= 6.2, < 6.4.7 | — |
| Linux | Linux Kernel | 6.5 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2023-53181?
How severe is CVE-2023-53181?
How do I fix CVE-2023-53181?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-53176In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53177In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53178In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2023-53179In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-5318Use of Hard-coded Credentials in GitHub repository microwebe…7.5
- CVE-2023-53180In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53182In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53183Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2023-53184In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53185In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53186In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2023-53187In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2023-53181?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
