Skip to content
Heist/ feed
Critical

rxrpc: Fix call timer start racing with call destruction

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix call timer start racing with call destruction The rxrpc_call struct has a timer used to handle various timed events relating to a call. This timer can get started from the packet input routines that are run in softirq mode with just the RCU read lock held. Unfortunately, because only the RCU read lock is held - and neither ref or other lock is taken - the call can start getting destroyed at the same time a packet comes in addressed to that call. This causes the timer - which was already stopped - to get restarted. Later, the timer dispatch code may then oops if the timer got deallocated first. Fix this by trying to take a ref on the rxrpc_call struct and, if successful, passing that ref along to the timer. If the timer was already running, the ref is discarded. The timer completion routine can then pass the ref along to the call's work item when it queues it. If the timer or work item where already queued/running, the extra ref is discarded.

Announced Source revision 1
Original source ↗

CVE-2022-49149

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2022-49149

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "a158bdd3247b9656df36ba133235fff702e9fdc3",
        "lessThan": "051360e51341cd17738d82c15a8226010c7cb7f6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a158bdd3247b9656df36ba133235fff702e9fdc3",
        "lessThan": "8cbf4ae7a2833767d63114573e5f9a45740cc975",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a158bdd3247b9656df36ba133235fff702e9fdc3",
        "lessThan": "54df5a37f1d951ed27fd47bf9b15a42279582110",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a158bdd3247b9656df36ba133235fff702e9fdc3",
        "lessThan": "5e3c11144e557a9dbf9a2f6abe444689ef9d8aae",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a158bdd3247b9656df36ba133235fff702e9fdc3",
        "lessThan": "4a7f62f91933c8ae5308f9127fd8ea48188b6bc3",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "include/trace/events/rxrpc.h",
      "net/rxrpc/ar-internal.h",
      "net/rxrpc/call_event.c",
      "net/rxrpc/call_object.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.110",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.33",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "5.16.19",
        "versionType": "semver",
        "lessThanOrEqual": "5.16.*"
      },
      {
        "status": "unaffected",
        "version": "5.17.2",
        "versionType": "semver",
        "lessThanOrEqual": "5.17.*"
      },
      {
        "status": "unaffected",
        "version": "5.18",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "include/trace/events/rxrpc.h",
      "net/rxrpc/ar-internal.h",
      "net/rxrpc/call_event.c",
      "net/rxrpc/call_object.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2022-49149

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#30181 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement