Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-47111
HistoryMar 15, 2024 - 8:14 p.m.

CVE-2021-47111 xen-netback: take a reference to the RX task thread

2024-03-1520:14:19
Linux
github.com
5
linux kernel
vulnerability
xen-netback

AI Score

6.6

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

xen-netback: take a reference to the RX task thread

Do this in order to prevent the task from being freed if the thread
returns (which can be triggered by the frontend) before the call to
kthread_stop done as part of the backend tear down. Not taking the
reference will lead to a use-after-free in that scenario. Such
reference was taken before but dropped as part of the rework done in
2ac061ce97f4.

Reintroduce the reference taking and add a comment this time
explaining why it’s needed.

This is XSA-374 / CVE-2021-28691.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2ac061ce97f4",
        "lessThan": "6b53db8c4c14",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2ac061ce97f4",
        "lessThan": "caec9bcaeb1a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2ac061ce97f4",
        "lessThan": "107866a8eb0b",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/xen-netback/interface.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.5"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.5",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.10.43",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.12.10",
        "versionType": "custom",
        "lessThanOrEqual": "5.12.*"
      },
      {
        "status": "unaffected",
        "version": "5.13",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/xen-netback/interface.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.6

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial