CVE-2024-49568 (GCVE-0-2024-49568)
Vulnerability from cvelistv5
Published
2025-01-11 12:35
Modified
2026-08-05 11:40
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: net/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg When receiving proposal msg in server, the fields v2_ext_offset/ eid_cnt/ism_gid_cnt in proposal msg are from the remote client and can not be fully trusted. Especially the field v2_ext_offset, once exceed the max value, there has the chance to access wrong address, and crash may happen. This patch checks the fields v2_ext_offset/eid_cnt/ism_gid_cnt before using them.
Impacted products
Vendor Product Version
Linux Linux Version: 8c3dca341aea885249e08856c4380300b75d2cf5
Version: 8c3dca341aea885249e08856c4380300b75d2cf5
Version: 8c3dca341aea885249e08856c4380300b75d2cf5
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/smc/af_smc.c",
            "net/smc/smc_clc.c",
            "net/smc/smc_clc.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "295a92e3df32e72aff0f4bc25c310e349d07ffbf",
              "status": "affected",
              "version": "8c3dca341aea885249e08856c4380300b75d2cf5",
              "versionType": "git"
            },
            {
              "lessThan": "42f6beb2d5779429417b5f8115a4e3fa695d2a6c",
              "status": "affected",
              "version": "8c3dca341aea885249e08856c4380300b75d2cf5",
              "versionType": "git"
            },
            {
              "lessThan": "7863c9f3d24ba49dbead7e03dfbe40deb5888fdf",
              "status": "affected",
              "version": "8c3dca341aea885249e08856c4380300b75d2cf5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/smc/af_smc.c",
            "net/smc/smc_clc.c",
            "net/smc/smc_clc.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.10"
            },
            {
              "lessThan": "5.10",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.68",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.13",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.68",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.7",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg\n\nWhen receiving proposal msg in server, the fields v2_ext_offset/\neid_cnt/ism_gid_cnt in proposal msg are from the remote client\nand can not be fully trusted. Especially the field v2_ext_offset,\nonce exceed the max value, there has the chance to access wrong\naddress, and crash may happen.\n\nThis patch checks the fields v2_ext_offset/eid_cnt/ism_gid_cnt\nbefore using them."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The malformed CLC proposal arrives as ordinary TCP payload from a remote peer on an SMC-enabled listening socket and is parsed by `smc_listen_work()`/`smc_clc_wait_msg()`. No local access or network adjacency is needed \u2014 any host that can reach the listener can trigger it.\nAC:L - The attacker controls every field involved (`version`, `typev1`, `typev2`, `iparea_offset`, `v2_ext_offset`) and an 8-byte payload deterministically produces the NULL dereference; the wild-pointer variant needs only a chosen 16-bit offset. No race, no memory-layout precondition, no state outside the attacker\u0027s control.\nPR:N - The CLC handshake runs immediately after the TCP three-way handshake, entirely before any application-level authentication, and `smc_clc_msg_prop_valid()` is the first validation performed on the peer\u0027s data. An unauthenticated remote attacker reaches it.\nUI:N - The kernel\u0027s listen worker parses the proposal automatically on connection accept; no local user or administrator action is required.\nS:U - The wild-pointer reads, writes and crash all occur within the kernel\u0027s own security authority; no VM, IOMMU or sandbox boundary is crossed.\nC:H - `v2_ext_offset` up to 65535 (vs. a legitimate max of 172) points the parser up to ~64 KB past a ~676-byte slab object, and the OOB-read `smcd_v2_ext_offset` extends that another 64 KB; `smc_clc_match_eid()` scans up to 8 KB of it and the OOB-read `max_conns`/`max_links` are negotiated and reflected back to the attacker. This is a wide, attacker-directed kernel memory read, not a bounded few-byte leak.\nI:H - Removing the `ism_gid_cnt` bound lets `smc_check_ism_v2_match()` write attacker-supplied 64-bit GIDs, `smcd_dev` pointers and CHIDs past the 9-element `ism_peer_gid`/`ism_dev`/`ism_chid` arrays in the kzalloc\u0027d `struct smc_init_info` on hosts with \u226510 SMC-D devices, and uncontrolled OOB-read bytes (`roce[]`, `system_eid`, GIDs) are installed as the link group\u0027s RDMA/ISM connection parameters.\nA:H - An 8-byte packet yields a guaranteed NULL-pointer oops in the `smc_hs_wq` worker while `lock_sock()` is held (full panic under `panic_on_oops`), and the wild-pointer faults occur while holding the global `smc_server_lgr_pending` mutex, permanently deadlocking every subsequent SMC server handshake. It is repeatable at will from an unauthenticated connection."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:40:00.300Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/295a92e3df32e72aff0f4bc25c310e349d07ffbf"
        },
        {
          "url": "https://git.kernel.org/stable/c/42f6beb2d5779429417b5f8115a4e3fa695d2a6c"
        },
        {
          "url": "https://git.kernel.org/stable/c/7863c9f3d24ba49dbead7e03dfbe40deb5888fdf"
        }
      ],
      "title": "net/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-49568",
    "datePublished": "2025-01-11T12:35:36.190Z",
    "dateReserved": "2025-01-11T12:34:02.664Z",
    "dateUpdated": "2026-08-05T11:40:00.300Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…