Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-26583
HistoryFeb 21, 2024 - 2:59 p.m.

CVE-2024-26583 tls: fix race between async notify and socket close

2024-02-2114:59:11
Linux
github.com
5
linux kernel
tls
vulnerability

AI Score

7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

tls: fix race between async notify and socket close

The submitting thread (one which called recvmsg/sendmsg)
may exit as soon as the async crypto handler calls complete()
so any code past that point risks touching already freed data.

Try to avoid the locking and extra flags altogether.
Have the main thread hold an extra reference, this way
we can depend solely on the atomic ref counter for
synchronization.

Don’t futz with reiniting the completion, either, we are now
tightly controlling when completion fires.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "0cada33241d9",
        "lessThan": "f17d21ea7391",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "0cada33241d9",
        "lessThan": "7a3ca06d04d5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "0cada33241d9",
        "lessThan": "86dc27ee36f5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "0cada33241d9",
        "lessThan": "6209319b2efd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "0cada33241d9",
        "lessThan": "aec7961916f3",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "include/net/tls.h",
      "net/tls/tls_sw.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.7",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.15.160",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.79",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.18",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7.6",
        "versionType": "custom",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "include/net/tls.h",
      "net/tls/tls_sw.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial