{"id":"CVE-2024-49568","state":"PUBLISHED","title":"net/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg","description":"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.","publishedAt":"2025-01-11T12:35:36.190Z","updatedAt":"2026-10-15T21:41:45.403Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"9cc0170ae646876aa5de2f0cad3066ce53e86f27","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"49798283fce4c1a24fb1ba4c7c39127739535571","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"690b9a8db9460d065785548e43fd6a02d247c1b7","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"295a92e3df32e72aff0f4bc25c310e349d07ffbf","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"42f6beb2d5779429417b5f8115a4e3fa695d2a6c","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"7863c9f3d24ba49dbead7e03dfbe40deb5888fdf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c","net/smc/smc_clc.c","net/smc/smc_clc.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.68","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.7","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c","net/smc/smc_clc.c","net/smc/smc_clc.h"]}],"references":["https://git.kernel.org/stable/c/9cc0170ae646876aa5de2f0cad3066ce53e86f27","https://git.kernel.org/stable/c/49798283fce4c1a24fb1ba4c7c39127739535571","https://git.kernel.org/stable/c/690b9a8db9460d065785548e43fd6a02d247c1b7","https://git.kernel.org/stable/c/295a92e3df32e72aff0f4bc25c310e349d07ffbf","https://git.kernel.org/stable/c/42f6beb2d5779429417b5f8115a4e3fa695d2a6c","https://git.kernel.org/stable/c/7863c9f3d24ba49dbead7e03dfbe40deb5888fdf"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/49xxx/CVE-2024-49568.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-49568","state":"PUBLISHED","datePublished":"2025-01-11T12:35:36.190Z","dateUpdated":"2026-10-15T21:41:45.403Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-11T12:34:02.664Z"},"containers":{"cna":{"title":"net/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"9cc0170ae646876aa5de2f0cad3066ce53e86f27","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"49798283fce4c1a24fb1ba4c7c39127739535571","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"690b9a8db9460d065785548e43fd6a02d247c1b7","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"295a92e3df32e72aff0f4bc25c310e349d07ffbf","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"42f6beb2d5779429417b5f8115a4e3fa695d2a6c","versionType":"git"},{"version":"8c3dca341aea885249e08856c4380300b75d2cf5","status":"affected","lessThan":"7863c9f3d24ba49dbead7e03dfbe40deb5888fdf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c","net/smc/smc_clc.c","net/smc/smc_clc.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.68","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.7","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c","net/smc/smc_clc.c","net/smc/smc_clc.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/9cc0170ae646876aa5de2f0cad3066ce53e86f27"},{"url":"https://git.kernel.org/stable/c/49798283fce4c1a24fb1ba4c7c39127739535571"},{"url":"https://git.kernel.org/stable/c/690b9a8db9460d065785548e43fd6a02d247c1b7"},{"url":"https://git.kernel.org/stable/c/295a92e3df32e72aff0f4bc25c310e349d07ffbf"},{"url":"https://git.kernel.org/stable/c/42f6beb2d5779429417b5f8115a4e3fa695d2a6c"},{"url":"https://git.kernel.org/stable/c/7863c9f3d24ba49dbead7e03dfbe40deb5888fdf"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"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 — 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's 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's data. An unauthenticated remote attacker reaches it.\nUI:N - The kernel's 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's 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'd `struct smc_init_info` on hosts with ≥10 SMC-D devices, and uncontrolled OOB-read bytes (`roce[]`, `system_eid`, GIDs) are installed as the link group's 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":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-03T10:55:19.630Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.271"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.222"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.6.68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.12.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-49568","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:40:30.354389Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:45.403Z"}}]}}}