{"id":"CVE-2026-97957","state":"PUBLISHED","title":"net: hinic: fix mailbox segment buffer overflow","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hinic: fix mailbox segment buffer overflow\n\ncheck_mbox_seq_id_and_seg_len() validates that seq_id does not\nexceed SEQ_ID_MAX_VAL (42) and seg_len does not exceed\nMBOX_SEG_LEN (48).  However, this allows the last segment\n(seq_id=42) to carry a full 48-byte payload, writing to offset\n42*48=2016 for 48 bytes (ending at byte 2064).  The receive\nbuffer is only MBOX_MAX_BUF_SZ (2048) bytes, resulting in a\n16-byte heap buffer overflow.\n\nThe hinic3 driver already handles this correctly by defining\nMBOX_LAST_SEG_MAX_LEN and rejecting the last segment when it\nexceeds the remaining buffer space.  Apply the same fix to the\nhinic driver.","publishedAt":"2026-09-25T10:23:03.153Z","updatedAt":"2026-10-19T09:11:23.333Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"7cc974799fde846eda2d8f00ad4f8e1810eb0499","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"8de1e23bd91fe3a6683e4bc574e2d6bcb0eef920","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"72be1fd5d256dde748c0905c5e1749a119cad5bd","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"c622bbc212207d7c6bbd69dd88f0c3a3f5853d16","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"eca54a092d5f7b497b458ff5a6f66d4f7bfb6674","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"9f6ad383901d0cb1c8ea5f7f3160fabfe1540eb5","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"513f7b16ed0cffae9348151c72bed17c7073096f","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"5d4d985957434867bbe85e4fa5e638f3e48ad522","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","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.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c"]}],"references":["https://git.kernel.org/stable/c/7cc974799fde846eda2d8f00ad4f8e1810eb0499","https://git.kernel.org/stable/c/8de1e23bd91fe3a6683e4bc574e2d6bcb0eef920","https://git.kernel.org/stable/c/72be1fd5d256dde748c0905c5e1749a119cad5bd","https://git.kernel.org/stable/c/c622bbc212207d7c6bbd69dd88f0c3a3f5853d16","https://git.kernel.org/stable/c/eca54a092d5f7b497b458ff5a6f66d4f7bfb6674","https://git.kernel.org/stable/c/9f6ad383901d0cb1c8ea5f7f3160fabfe1540eb5","https://git.kernel.org/stable/c/513f7b16ed0cffae9348151c72bed17c7073096f","https://git.kernel.org/stable/c/5d4d985957434867bbe85e4fa5e638f3e48ad522"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/97xxx/CVE-2026-97957.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-97957","state":"PUBLISHED","datePublished":"2026-09-25T10:23:03.153Z","dateUpdated":"2026-10-19T09:11:23.333Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:18:58.205Z"},"containers":{"cna":{"title":"net: hinic: fix mailbox segment buffer overflow","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hinic: fix mailbox segment buffer overflow\n\ncheck_mbox_seq_id_and_seg_len() validates that seq_id does not\nexceed SEQ_ID_MAX_VAL (42) and seg_len does not exceed\nMBOX_SEG_LEN (48).  However, this allows the last segment\n(seq_id=42) to carry a full 48-byte payload, writing to offset\n42*48=2016 for 48 bytes (ending at byte 2064).  The receive\nbuffer is only MBOX_MAX_BUF_SZ (2048) bytes, resulting in a\n16-byte heap buffer overflow.\n\nThe hinic3 driver already handles this correctly by defining\nMBOX_LAST_SEG_MAX_LEN and rejecting the last segment when it\nexceeds the remaining buffer space.  Apply the same fix to the\nhinic driver."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"7cc974799fde846eda2d8f00ad4f8e1810eb0499","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"8de1e23bd91fe3a6683e4bc574e2d6bcb0eef920","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"72be1fd5d256dde748c0905c5e1749a119cad5bd","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"c622bbc212207d7c6bbd69dd88f0c3a3f5853d16","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"eca54a092d5f7b497b458ff5a6f66d4f7bfb6674","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"9f6ad383901d0cb1c8ea5f7f3160fabfe1540eb5","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"513f7b16ed0cffae9348151c72bed17c7073096f","versionType":"git"},{"version":"a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c","status":"affected","lessThan":"5d4d985957434867bbe85e4fa5e638f3e48ad522","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","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.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7cc974799fde846eda2d8f00ad4f8e1810eb0499"},{"url":"https://git.kernel.org/stable/c/8de1e23bd91fe3a6683e4bc574e2d6bcb0eef920"},{"url":"https://git.kernel.org/stable/c/72be1fd5d256dde748c0905c5e1749a119cad5bd"},{"url":"https://git.kernel.org/stable/c/c622bbc212207d7c6bbd69dd88f0c3a3f5853d16"},{"url":"https://git.kernel.org/stable/c/eca54a092d5f7b497b458ff5a6f66d4f7bfb6674"},{"url":"https://git.kernel.org/stable/c/9f6ad383901d0cb1c8ea5f7f3160fabfe1540eb5"},{"url":"https://git.kernel.org/stable/c/513f7b16ed0cffae9348151c72bed17c7073096f"},{"url":"https://git.kernel.org/stable/c/5d4d985957434867bbe85e4fa5e638f3e48ad522"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The malformed input is a mailbox header (SEQID/SEG_LEN) and 48-byte body that a VF driver writes into its own mailbox registers. The hardware delivers it to the PF's hinic_mbox_func_aeqe_handler() -> recv_mbox_handler(). The attacker is code running in a guest that owns an SR-IOV VF (or a local driver), not a remote network peer, so this is local access.\nAC:L - The attacker sends segments seq_id 0..42 in order, each with seg_len=48. check_mbox_seq_id_and_seg_len() accepts all of them, and the memcpy at offset 42*48 overflows every time. The only setup is a VF assigned to the attacker's VM, which is the standard SR-IOV passthrough deployment. Nothing depends on timing or state outside the attacker's control.\nPR:L - Writing raw mailbox headers needs kernel control of the VF, i.e. root inside the guest. A VM tenant always has that, and it gives no privilege on the host whose PF driver is corrupted. The random id checked by check_vf_mbox_random_id() is given to every genuine VF, so it does not stop a hostile VF driver.\nUI:N - The PF host processes the mailbox message on its own from the AEQ handler. Nobody on the host has to do anything.\nS:C - The bug is in a guest-controlled VF's messages, but the overflow corrupts the host kernel heap in the PF driver (recv_mbox->mbox, kzalloc(2048)). That crosses the guest-to-host boundary, like a VM escape.\nC:H - Overwriting the first 16 bytes of the neighbouring kmalloc-2048 object with attacker-chosen data can corrupt pointers or length fields in that object. That is a normal route to reading arbitrary host kernel memory.\nI:H - recv_mbox_handler() copies 16 attacker-chosen bytes from the mailbox body past the end of the 2048-byte receive buffer. This is a controlled heap out-of-bounds write in the host kernel, which can lead to control-flow hijack.\nA:H - The guest can repeat the corruption of the neighbouring host heap object at will, crashing or panicking the host kernel. That takes down every tenant on the host."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:11:23.333Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.271"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.222"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}