Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48780
HistoryJul 16, 2024 - 11:13 a.m.

CVE-2022-48780 net/smc: Avoid overwriting the copies of clcsock callback functions

2024-07-1611:13:17
Linux
www.cve.org
4
linux kernel
net/smc
vulnerability
clcsock
callback functions
fallback

EPSS

0

Percentile

16.0%

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

net/smc: Avoid overwriting the copies of clcsock callback functions

The callback functions of clcsock will be saved and replaced during
the fallback. But if the fallback happens more than once, then the
copies of these callback functions will be overwritten incorrectly,
resulting in a loop call issue:

clcsk->sk_error_report
|- smc_fback_error_report() <------------------------------|
|- smc_fback_forward_wakeup() | (loop)
|- clcsock_callback() (incorrectly overwritten) |
|- smc->clcsk_error_report() ------------------|

So this patch fixes the issue by saving these function pointers only
once in the fallback and avoiding overwriting.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/smc/af_smc.c"
    ],
    "versions": [
      {
        "version": "0ef6049f6649",
        "lessThan": "7de7ba7a8bd4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "504078fbe9dd",
        "lessThan": "f00b6c976ae0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "341adeec9ada",
        "lessThan": "1de9770d121e",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/smc/af_smc.c"
    ],
    "versions": [
      {
        "version": "5.15.22",
        "lessThan": "5.15.25",
        "status": "affected",
        "versionType": "custom"
      },
      {
        "version": "5.16.8",
        "lessThan": "5.16.11",
        "status": "affected",
        "versionType": "custom"
      }
    ]
  }
]

EPSS

0

Percentile

16.0%