{"id":"CVE-2024-49571","state":"PUBLISHED","title":"net/smc: check iparea_offset and ipv6_prefixes_cnt when receiving proposal msg","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: check iparea_offset and ipv6_prefixes_cnt when receiving proposal msg\n\nWhen receiving proposal msg in server, the field iparea_offset\nand the field ipv6_prefixes_cnt in proposal msg are from the\nremote client and can not be fully trusted. Especially the\nfield iparea_offset, once exceed the max value, there has the\nchance to access wrong address, and crash may happen.\n\nThis patch checks iparea_offset and ipv6_prefixes_cnt before using them.","publishedAt":"2025-01-11T12:35:36.957Z","updatedAt":"2026-08-05T11:40:02.429Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"846bada23bfcdeb83621b045ed85dc06c7833ff0","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"f10635268a0a49ee902a3b63b5dbb76f4fed498e","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"62056d1592e63d85e82357ee2ae6a6a294f440b0","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"91a7c27c1444ed4677b83fd5308d2cf03f5f0851","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"47ce46349672a7e0c361bfe39ed0b22e824ef4fb","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"a29e220d3c8edbf0e1beb0f028878a4a85966556","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":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"5.10.233","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.176","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.122","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/846bada23bfcdeb83621b045ed85dc06c7833ff0","https://git.kernel.org/stable/c/f10635268a0a49ee902a3b63b5dbb76f4fed498e","https://git.kernel.org/stable/c/62056d1592e63d85e82357ee2ae6a6a294f440b0","https://git.kernel.org/stable/c/91a7c27c1444ed4677b83fd5308d2cf03f5f0851","https://git.kernel.org/stable/c/47ce46349672a7e0c361bfe39ed0b22e824ef4fb","https://git.kernel.org/stable/c/a29e220d3c8edbf0e1beb0f028878a4a85966556","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/49xxx/CVE-2024-49571.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-49571","state":"PUBLISHED","datePublished":"2025-01-11T12:35:36.957Z","dateUpdated":"2026-08-05T11:40:02.429Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-11T12:33:33.704Z"},"containers":{"cna":{"title":"net/smc: check iparea_offset and ipv6_prefixes_cnt when receiving proposal msg","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: check iparea_offset and ipv6_prefixes_cnt when receiving proposal msg\n\nWhen receiving proposal msg in server, the field iparea_offset\nand the field ipv6_prefixes_cnt in proposal msg are from the\nremote client and can not be fully trusted. Especially the\nfield iparea_offset, once exceed the max value, there has the\nchance to access wrong address, and crash may happen.\n\nThis patch checks iparea_offset and ipv6_prefixes_cnt before using them."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"846bada23bfcdeb83621b045ed85dc06c7833ff0","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"f10635268a0a49ee902a3b63b5dbb76f4fed498e","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"62056d1592e63d85e82357ee2ae6a6a294f440b0","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"91a7c27c1444ed4677b83fd5308d2cf03f5f0851","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"47ce46349672a7e0c361bfe39ed0b22e824ef4fb","versionType":"git"},{"version":"e7b7a64a8493d47433fd003efbe6543e3f676294","status":"affected","lessThan":"a29e220d3c8edbf0e1beb0f028878a4a85966556","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":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"5.10.233","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.176","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.122","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/846bada23bfcdeb83621b045ed85dc06c7833ff0"},{"url":"https://git.kernel.org/stable/c/f10635268a0a49ee902a3b63b5dbb76f4fed498e"},{"url":"https://git.kernel.org/stable/c/62056d1592e63d85e82357ee2ae6a6a294f440b0"},{"url":"https://git.kernel.org/stable/c/91a7c27c1444ed4677b83fd5308d2cf03f5f0851"},{"url":"https://git.kernel.org/stable/c/47ce46349672a7e0c361bfe39ed0b22e824ef4fb"},{"url":"https://git.kernel.org/stable/c/a29e220d3c8edbf0e1beb0f028878a4a85966556"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":9.1,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The malformed CLC Proposal is received over a routable TCP connection by the in-kernel SMC listener (`smc_listen_work()`), with all attacker-controlled fields (`iparea_offset`, `ipv6_prefixes_cnt`, `hdr.length`, `typev1`) coming straight off the wire. Any remote host that can reach an SMC-enabled listening socket can deliver it.\nAC:L - The attacker fully controls every field involved; no race, memory grooming, or unpredictable state is needed, and the only variable — the server's IP prefix length for `smc_clc_prfx_match4_rcu()` — is brute-forceable in at most 32 connections. The OOB read in `smc_clc_msg_prop_valid()` triggers on the very first packet with no preconditions at all.\nPR:N - The CLC handshake is the first exchange after TCP accept and SMC performs no authentication whatsoever, so the vulnerable parsing runs entirely pre-authentication. The attacker needs only the ability to complete a TCP handshake with the SMC experimental option set.\nUI:N - The server-side listen worker parses the proposal automatically upon connection; no action by any local user or administrator is required. A single unsolicited connection suffices.\nS:U - The out-of-bounds reads and the NULL dereference occur within the kernel's own memory and security authority, with no crossing of a VM, IOMMU, or sandbox boundary. Impact is confined to the kernel that parsed the message.\nC:H - `iparea_offset` lets the prefix pointer land up to ~64 KB past a ~656-byte kmalloc-1k object, and the OOB-read `ipv6_prefixes_cnt` is checked for equality against the attacker's own `hdr->length`, making success remotely observable — a byte-granular read oracle over a large window of adjacent kernel heap (kernel pointers, other sockets' data). `smc_clc_prfx_match()` reads ~144 further OOB bytes and reflects the result back as a decline reason, so this is far more than a strictly bounded few-byte read.\nI:N - The out-of-bounds pointer is only ever dereferenced for reads (`smc_clc_msg_prop_valid()`, `smc_clc_prfx_match4_rcu()`/`match6_rcu()`), and the additional defect is a NULL-pointer read; no attacker-controlled data is written out of bounds and no control-flow hijack primitive arises.\nA:H - With `typev1=SMC_TYPE_D` and `iparea_offset != 40`, `smc_find_ism_v1_device_serv()` dereferences a NULL `pclc_smcd`, oopsing the `smc_hs_wq` worker while `smc_server_lgr_pending` and the socket lock are held and never released, permanently deadlocking all further SMC server handshakes; the far OOB read can also fault on unmapped memory, and `panic_on_oops` turns either into a full system panic."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:40:02.429Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"5.10.233"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"5.15.176"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.1.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.6.68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.12.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:41:09.035Z"}}]}}}