{"id":"CVE-2025-37791","state":"PUBLISHED","title":"ethtool: cmis_cdb: use correct rpl size in ethtool_cmis_module_poll()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nethtool: cmis_cdb: use correct rpl size in ethtool_cmis_module_poll()\n\nrpl is passed as a pointer to ethtool_cmis_module_poll(), so the correct\nsize of rpl is sizeof(*rpl) which should be just 1 byte.  Using the\npointer size instead can cause stack corruption:\n\nKernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ethtool_cmis_wait_for_cond+0xf4/0x100\nCPU: 72 UID: 0 PID: 4440 Comm: kworker/72:2 Kdump: loaded Tainted: G           OE      6.11.0 #24\nTainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE\nHardware name: Dell Inc. PowerEdge R760/04GWWM, BIOS 1.6.6 09/20/2023\nWorkqueue: events module_flash_fw_work\nCall Trace:\n <TASK>\n panic+0x339/0x360\n ? ethtool_cmis_wait_for_cond+0xf4/0x100\n ? __pfx_status_success+0x10/0x10\n ? __pfx_status_fail+0x10/0x10\n __stack_chk_fail+0x10/0x10\n ethtool_cmis_wait_for_cond+0xf4/0x100\n ethtool_cmis_cdb_execute_cmd+0x1fc/0x330\n ? __pfx_status_fail+0x10/0x10\n cmis_cdb_module_features_get+0x6d/0xd0\n ethtool_cmis_cdb_init+0x8a/0xd0\n ethtool_cmis_fw_update+0x46/0x1d0\n module_flash_fw_work+0x17/0xa0\n process_one_work+0x179/0x390\n worker_thread+0x239/0x340\n ? __pfx_worker_thread+0x10/0x10\n kthread+0xcc/0x100\n ? __pfx_kthread+0x10/0x10\n ret_from_fork+0x2d/0x50\n ? __pfx_kthread+0x10/0x10\n ret_from_fork_asm+0x1a/0x30\n </TASK>","publishedAt":"2025-05-01T13:07:24.062Z","updatedAt":"2026-10-15T21:51:59.849Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/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":"a39c84d796254e6b1662ca0c46dbc313379e9291","status":"affected","lessThan":"61765e1b417a23371c3735e3cddf4ad9354ed2e9","versionType":"git"},{"version":"a39c84d796254e6b1662ca0c46dbc313379e9291","status":"affected","lessThan":"7eb0a0072f966bb0b01d8b7d529d9743a7187bd1","versionType":"git"},{"version":"a39c84d796254e6b1662ca0c46dbc313379e9291","status":"affected","lessThan":"f3fdd4fba16c74697d8bc730b82fb7c1eff7fab3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/cmis_cdb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.25","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.4","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/cmis_cdb.c"]}],"references":["https://git.kernel.org/stable/c/61765e1b417a23371c3735e3cddf4ad9354ed2e9","https://git.kernel.org/stable/c/7eb0a0072f966bb0b01d8b7d529d9743a7187bd1","https://git.kernel.org/stable/c/f3fdd4fba16c74697d8bc730b82fb7c1eff7fab3"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37791.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37791","state":"PUBLISHED","datePublished":"2025-05-01T13:07:24.062Z","dateUpdated":"2026-10-15T21:51:59.849Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.941Z"},"containers":{"cna":{"title":"ethtool: cmis_cdb: use correct rpl size in ethtool_cmis_module_poll()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nethtool: cmis_cdb: use correct rpl size in ethtool_cmis_module_poll()\n\nrpl is passed as a pointer to ethtool_cmis_module_poll(), so the correct\nsize of rpl is sizeof(*rpl) which should be just 1 byte.  Using the\npointer size instead can cause stack corruption:\n\nKernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ethtool_cmis_wait_for_cond+0xf4/0x100\nCPU: 72 UID: 0 PID: 4440 Comm: kworker/72:2 Kdump: loaded Tainted: G           OE      6.11.0 #24\nTainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE\nHardware name: Dell Inc. PowerEdge R760/04GWWM, BIOS 1.6.6 09/20/2023\nWorkqueue: events module_flash_fw_work\nCall Trace:\n <TASK>\n panic+0x339/0x360\n ? ethtool_cmis_wait_for_cond+0xf4/0x100\n ? __pfx_status_success+0x10/0x10\n ? __pfx_status_fail+0x10/0x10\n __stack_chk_fail+0x10/0x10\n ethtool_cmis_wait_for_cond+0xf4/0x100\n ethtool_cmis_cdb_execute_cmd+0x1fc/0x330\n ? __pfx_status_fail+0x10/0x10\n cmis_cdb_module_features_get+0x6d/0xd0\n ethtool_cmis_cdb_init+0x8a/0xd0\n ethtool_cmis_fw_update+0x46/0x1d0\n module_flash_fw_work+0x17/0xa0\n process_one_work+0x179/0x390\n worker_thread+0x239/0x340\n ? __pfx_worker_thread+0x10/0x10\n kthread+0xcc/0x100\n ? __pfx_kthread+0x10/0x10\n ret_from_fork+0x2d/0x50\n ? __pfx_kthread+0x10/0x10\n ret_from_fork_asm+0x1a/0x30\n </TASK>"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a39c84d796254e6b1662ca0c46dbc313379e9291","status":"affected","lessThan":"61765e1b417a23371c3735e3cddf4ad9354ed2e9","versionType":"git"},{"version":"a39c84d796254e6b1662ca0c46dbc313379e9291","status":"affected","lessThan":"7eb0a0072f966bb0b01d8b7d529d9743a7187bd1","versionType":"git"},{"version":"a39c84d796254e6b1662ca0c46dbc313379e9291","status":"affected","lessThan":"f3fdd4fba16c74697d8bc730b82fb7c1eff7fab3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/cmis_cdb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.25","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.4","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/cmis_cdb.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/61765e1b417a23371c3735e3cddf4ad9354ed2e9"},{"url":"https://git.kernel.org/stable/c/7eb0a0072f966bb0b01d8b7d529d9743a7187bd1"},{"url":"https://git.kernel.org/stable/c/f3fdd4fba16c74697d8bc730b82fb7c1eff7fab3"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is triggered through the ethtool generic-netlink command ETHTOOL_MSG_MODULE_FW_FLASH_ACT issued over an AF_NETLINK socket, which requires local system access. No remote or adjacent-network packet path reaches `ethtool_cmis_module_poll()`.\nAC:L - The wrong size is used unconditionally on every poll iteration, so any firmware-flash request against a CMIS module reliably produces the 7-byte stack overwrite and stack-protector panic — no race to win and no memory-layout precondition outside the attacker's control.\nPR:L - The netlink op is gated by GENL_UNS_ADMIN_PERM, i.e. `netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN)`, which an unprivileged user can obtain in their own user/network namespace via `unshare -Urn`, so this is namespace-scoped CAP_NET_ADMIN rather than real init-namespace root.\nUI:N - The attacker issues the module firmware-flash request directly and the crash occurs in the resulting kworker; no victim action, mount, or file-open by another user is needed.\nS:U - The stack corruption occurs in kernel context and its impact stays within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is an out-of-bounds kernel stack write whose contents come from an attacker-influenceable transceiver EEPROM, and corrupting saved locals/return state in `ethtool_cmis_wait_for_cond()` is leverageable toward arbitrary kernel memory disclosure on configurations without an effective stack canary.\nI:H - A 7-byte out-of-bounds stack write with externally supplied data is direct kernel memory corruption; per out-of-bounds-write guidance this is High, as adjacent stack state can be overwritten to influence control flow.\nA:H - The reported and reproducible outcome is `Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in ethtool_cmis_wait_for_cond`, an immediate unrecoverable system crash from a kernel worker thread."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:57:34.960Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.25"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.14.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-37791","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:45:11.558398Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:51:59.849Z"}}]}}}