Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52664
HistoryMay 17, 2024 - 1:45 p.m.

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

2024-05-1713:45:05
Linux
www.cve.org
linux kernel
net
atlantic
error handling
memory allocation

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/aquantia/atlantic/aq_ptp.c",
      "drivers/net/ethernet/aquantia/atlantic/aq_ring.c",
      "drivers/net/ethernet/aquantia/atlantic/aq_ring.h",
      "drivers/net/ethernet/aquantia/atlantic/aq_vec.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "0edb3ae8bfa3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "c11a870a73a3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "d1fde4a7e1dc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "b3cb7a830a24",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/aquantia/atlantic/aq_ptp.c",
      "drivers/net/ethernet/aquantia/atlantic/aq_ring.c",
      "drivers/net/ethernet/aquantia/atlantic/aq_ring.h",
      "drivers/net/ethernet/aquantia/atlantic/aq_vec.c"
    ],
    "versions": [
      {
        "version": "6.1.77",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.16",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.4",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%