CVE-2022-50676 (GCVE-0-2022-50676)

Vulnerability from cvelistv5 – Published: 2025-12-09 01:29 – Updated: 2025-12-09 01:29
VLAI?
Title
net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks()
Summary
In the Linux kernel, the following vulnerability has been resolved: net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks() syzbot is reporting lockdep warning at rds_tcp_reset_callbacks() [1], for commit ac3615e7f3cffe2a ("RDS: TCP: Reduce code duplication in rds_tcp_reset_callbacks()") added cancel_delayed_work_sync() into a section protected by lock_sock() without realizing that rds_send_xmit() might call lock_sock(). We don't need to protect cancel_delayed_work_sync() using lock_sock(), for even if rds_{send,recv}_worker() re-queued this work while __flush_work() from cancel_delayed_work_sync() was waiting for this work to complete, retried rds_{send,recv}_worker() is no-op due to the absence of RDS_CONN_UP bit.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < 5d2ba255e93211e541373469dffbda7c99dfa0e5 (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < 2425007c0967a7c04b0dee7cce05ecf0ca869ad1 (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < e3cb25d3ad08f5dbd53ce2b31720cad529944322 (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < 360aa7219285fac63dab99706a16f2daf3222abe (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < da349221c4d2d4ac5f606c1c3b36d4ef0b3e6a0c (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < 30bfa5aa7228eb1e67663d67e553627e572cc717 (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < c380c28ab9b15fc53565909c814f6dd3e7f77c4b (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < afe7053c390fe8ff27d0c2ceaece5625283044ba (git)
Affected: ac3615e7f3cffe2a1a6b25172dfd09e138593d82 , < a91b750fd6629354460282bbf5146c01b05c4859 (git)
Create a notification for this product.
    Linux Linux Affected: 4.8
Unaffected: 0 , < 4.8 (semver)
Unaffected: 4.9.331 , ≤ 4.9.* (semver)
Unaffected: 4.14.296 , ≤ 4.14.* (semver)
Unaffected: 4.19.262 , ≤ 4.19.* (semver)
Unaffected: 5.4.220 , ≤ 5.4.* (semver)
Unaffected: 5.10.150 , ≤ 5.10.* (semver)
Unaffected: 5.15.75 , ≤ 5.15.* (semver)
Unaffected: 5.19.17 , ≤ 5.19.* (semver)
Unaffected: 6.0.3 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/rds/tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5d2ba255e93211e541373469dffbda7c99dfa0e5",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "2425007c0967a7c04b0dee7cce05ecf0ca869ad1",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "e3cb25d3ad08f5dbd53ce2b31720cad529944322",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "360aa7219285fac63dab99706a16f2daf3222abe",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "da349221c4d2d4ac5f606c1c3b36d4ef0b3e6a0c",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "30bfa5aa7228eb1e67663d67e553627e572cc717",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "c380c28ab9b15fc53565909c814f6dd3e7f77c4b",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "afe7053c390fe8ff27d0c2ceaece5625283044ba",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            },
            {
              "lessThan": "a91b750fd6629354460282bbf5146c01b05c4859",
              "status": "affected",
              "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/rds/tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.8"
            },
            {
              "lessThan": "4.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.331",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.296",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.262",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.220",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.150",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.331",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.296",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.262",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.220",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.150",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.75",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.17",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.3",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rds: don\u0027t hold sock lock when cancelling work from rds_tcp_reset_callbacks()\n\nsyzbot is reporting lockdep warning at rds_tcp_reset_callbacks() [1], for\ncommit ac3615e7f3cffe2a (\"RDS: TCP: Reduce code duplication in\nrds_tcp_reset_callbacks()\") added cancel_delayed_work_sync() into a section\nprotected by lock_sock() without realizing that rds_send_xmit() might call\nlock_sock().\n\nWe don\u0027t need to protect cancel_delayed_work_sync() using lock_sock(), for\neven if rds_{send,recv}_worker() re-queued this work while __flush_work()\n from cancel_delayed_work_sync() was waiting for this work to complete,\nretried rds_{send,recv}_worker() is no-op due to the absence of RDS_CONN_UP\nbit."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-09T01:29:29.166Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5d2ba255e93211e541373469dffbda7c99dfa0e5"
        },
        {
          "url": "https://git.kernel.org/stable/c/2425007c0967a7c04b0dee7cce05ecf0ca869ad1"
        },
        {
          "url": "https://git.kernel.org/stable/c/e3cb25d3ad08f5dbd53ce2b31720cad529944322"
        },
        {
          "url": "https://git.kernel.org/stable/c/360aa7219285fac63dab99706a16f2daf3222abe"
        },
        {
          "url": "https://git.kernel.org/stable/c/da349221c4d2d4ac5f606c1c3b36d4ef0b3e6a0c"
        },
        {
          "url": "https://git.kernel.org/stable/c/30bfa5aa7228eb1e67663d67e553627e572cc717"
        },
        {
          "url": "https://git.kernel.org/stable/c/c380c28ab9b15fc53565909c814f6dd3e7f77c4b"
        },
        {
          "url": "https://git.kernel.org/stable/c/afe7053c390fe8ff27d0c2ceaece5625283044ba"
        },
        {
          "url": "https://git.kernel.org/stable/c/a91b750fd6629354460282bbf5146c01b05c4859"
        }
      ],
      "title": "net: rds: don\u0027t hold sock lock when cancelling work from rds_tcp_reset_callbacks()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50676",
    "datePublished": "2025-12-09T01:29:29.166Z",
    "dateReserved": "2025-12-09T01:26:45.991Z",
    "dateUpdated": "2025-12-09T01:29:29.166Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50676\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-09T16:17:19.843\",\"lastModified\":\"2025-12-09T18:37:13.640\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: rds: don\u0027t hold sock lock when cancelling work from rds_tcp_reset_callbacks()\\n\\nsyzbot is reporting lockdep warning at rds_tcp_reset_callbacks() [1], for\\ncommit ac3615e7f3cffe2a (\\\"RDS: TCP: Reduce code duplication in\\nrds_tcp_reset_callbacks()\\\") added cancel_delayed_work_sync() into a section\\nprotected by lock_sock() without realizing that rds_send_xmit() might call\\nlock_sock().\\n\\nWe don\u0027t need to protect cancel_delayed_work_sync() using lock_sock(), for\\neven if rds_{send,recv}_worker() re-queued this work while __flush_work()\\n from cancel_delayed_work_sync() was waiting for this work to complete,\\nretried rds_{send,recv}_worker() is no-op due to the absence of RDS_CONN_UP\\nbit.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2425007c0967a7c04b0dee7cce05ecf0ca869ad1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/30bfa5aa7228eb1e67663d67e553627e572cc717\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/360aa7219285fac63dab99706a16f2daf3222abe\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5d2ba255e93211e541373469dffbda7c99dfa0e5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a91b750fd6629354460282bbf5146c01b05c4859\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/afe7053c390fe8ff27d0c2ceaece5625283044ba\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c380c28ab9b15fc53565909c814f6dd3e7f77c4b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/da349221c4d2d4ac5f606c1c3b36d4ef0b3e6a0c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e3cb25d3ad08f5dbd53ce2b31720cad529944322\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…