Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2021-47294
HistoryMay 21, 2024 - 3:15 p.m.

CVE-2021-47294

2024-05-2115:15:17
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
28
cve-2021-47294
netrom module
sock timer api

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.2%

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

netrom: Decrease sock refcount when sock timers expire

Commit 63346650c1a9 (“netrom: switch to sock timer API”) switched to use
sock timer API. It replaces mod_timer() by sk_reset_timer(), and
del_timer() by sk_stop_timer().

Function sk_reset_timer() will increase the refcount of sock if it is
called on an inactive timer, hence, in case the timer expires, we need to
decrease the refcount ourselves in the handler, otherwise, the sock
refcount will be unbalanced and the sock will never be freed.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.04.4.277
OR
linuxlinux_kernelRange4.5.04.9.277
OR
linuxlinux_kernelRange4.10.04.14.241
OR
linuxlinux_kernelRange4.15.04.19.199
OR
linuxlinux_kernelRange4.20.05.4.136
OR
linuxlinux_kernelRange5.5.05.10.54
OR
linuxlinux_kernelRange5.11.05.13.6
OR
linuxlinux_kernelRange5.14.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/netrom/nr_timer.c"
    ],
    "versions": [
      {
        "version": "ce29e8a259de",
        "lessThan": "853262355518",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "baa9e32336bf",
        "lessThan": "a01634bf91f2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0adf571fa34b",
        "lessThan": "48866fd5c361",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2c6b572458a9",
        "lessThan": "9619cc7d97c3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63346650c1a9",
        "lessThan": "25df44e90ff5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63346650c1a9",
        "lessThan": "6811744bd0ef",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63346650c1a9",
        "lessThan": "bc1660206c37",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63346650c1a9",
        "lessThan": "517a16b1a88b",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/netrom/nr_timer.c"
    ],
    "versions": [
      {
        "version": "5.0",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.0",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.4.277",
        "lessThanOrEqual": "4.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.9.277",
        "lessThanOrEqual": "4.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.241",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.199",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.136",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.54",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13.6",
        "lessThanOrEqual": "5.13.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.14",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.2%