# CVE-2023-52664: net: atlantic: eliminate double free in error handling logic

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-05-17T13:45:05.545Z
- Modified: 2026-08-05T09:10:55.411Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: atlantic: eliminate double free in error handling logic

Driver has a logic leak in ring data allocation/free,
where aq_ring_free could be called multiple times on same ring,
if system is under stress and got memory allocation error.

Ring pointer was used as an indicator of failure, but this is
not correct since only ring data is allocated/deallocated.
Ring itself is an array member.

Changing ring allocation functions to return error code directly.
This simplifies error handling and eliminates aq_ring_free
on higher layer.

(As written by CVE List.)

## Affected

- Linux Linux: from 018423e90bee8978105eaaa265a26e70637f9f1e before 0edb3ae8bfa31cd544b0c195bdec00e036002b5d; from 018423e90bee8978105eaaa265a26e70637f9f1e before c11a870a73a3bc4cc7df6dd877a45b181795fcbf; from 018423e90bee8978105eaaa265a26e70637f9f1e before d1fde4a7e1dcc4d49cce285107a7a43c3030878d; from 018423e90bee8978105eaaa265a26e70637f9f1e before b3cb7a830a24527877b0bc900b9bd74a96aea928; 4.11 (not affected: before 4.11; from 6.1.77 up to 6.1.*; from 6.6.16 up to 6.6.*; from 6.7.4 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: before 6.1.77; from 6.2 before 6.6.16; from 6.7 before 6.7.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/0edb3ae8bfa31cd544b0c195bdec00e036002b5d> (patch)
- <https://git.kernel.org/stable/c/c11a870a73a3bc4cc7df6dd877a45b181795fcbf> (patch)
- <https://git.kernel.org/stable/c/d1fde4a7e1dcc4d49cce285107a7a43c3030878d> (patch)
- <https://git.kernel.org/stable/c/b3cb7a830a24527877b0bc900b9bd74a96aea928> (patch)

## Sources

- CVE List: [CVE-2023-52664](https://www.cve.org/CVERecord?id=CVE-2023-52664), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52664](https://nvd.nist.gov/vuln/detail/CVE-2023-52664), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52664 · Whole record: https://cve.day/CVE-2023-52664.json · Rebuilt by cve.day 2026-11-25T22:58:33.962Z
