synced 1 MIN AGO
01 Record

CVE-2026-31478

ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()

CriticalPUBLISHEDCNA: Linux
CNA base score9.8 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

02 Description

ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
0.50% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 42.6% of scored records. A rank, not a probability.
NVD base score
9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-10-19.
Red Hat severity
Low. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2026-04-22 13:54Z6 MO AGO
Last updated
2026-10-19 18:45Z9 DAYS AGO
Reserved
2026-03-09
Assigning CNA
Linux
Record state
PUBLISHED
Severity
Critical (CVSS 9.8)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
  • CWE-131Incorrect Calculation of Buffer SizeBase
Data version
5.2
Document digest
4a36136f93ed539c6c1a7be81d85748a070edaab5e2336ed7a69519db4077800

05 Affected products

VendorProductVersionsPlatforms
LinuxLinuxf2283680a80571ca82d710bc6ecd8f8beac67d63 to < 70b4c414889492c522b6e4331562360f49be2361, 9f297df20d93411c0b4ddad7f88ba04a7cd36e77 to < 9a7166f0ef8cbb7bb48dd05e2471d995566003f5, e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < c3a89e3ec1ccf64fa6a34e391e1581ebbcba8683, e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 6aef1765d6807e0f027cd87f6ac973eb0879a46d, e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 80824c7e527b70cf9039534e60aff592e8f209d1, e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 4cb537ae4f37d7d0f617815ed4bed7173fb50861, e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 0e55f63dd08f09651d39e1b709a91705a8a0ddcb, 5.15.145 to < 5.15.203, 6.1.71 to < 6.1.168, 6.6—

06 References

07 Fixed in

Debian 12

  • linux
    Fixed in 6.1.170-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • linux
    Fixed in 6.12.85-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • linux
    Fixed in 6.19.11-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • linux-hwe-edge
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • linux-aws-5.0
    No fix yet
  • linux-aws-5.3
    No fix yet
  • linux-azure
    No fix yet
  • linux-azure-5.3
    No fix yet
  • linux-azure-edge
    No fix yet
  • linux-gcp
    No fix yet
  • linux-gcp-5.3
    No fix yet
  • linux-gke-4.15
    No fix yet
  • linux-gke-5.4
    No fix yet
  • linux-gkeop-5.4
    No fix yet
  • linux-hwe
    No fix yet
  • linux-hwe-edge
    No fix yet
  • linux-oem
    No fix yet
  • linux-oracle-5.0
    No fix yet
  • linux-oracle-5.3
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • linux-aws-5.11
    No fix yet
  • linux-aws-5.13
    No fix yet
  • linux-aws-5.8
    No fix yet
  • linux-azure-5.11
    No fix yet
  • linux-azure-5.13
    No fix yet
  • linux-azure-5.8
    No fix yet
  • linux-azure-fde
    No fix yet
  • linux-gcp-5.11
    No fix yet
  • linux-gcp-5.13
    No fix yet
  • linux-gcp-5.8
    No fix yet
  • linux-gke
    No fix yet
  • linux-gke-5.15
    No fix yet
  • linux-gkeop
    No fix yet
  • linux-gkeop-5.15
    No fix yet
  • linux-hwe-5.11
    No fix yet
  • linux-hwe-5.13
    No fix yet
  • linux-hwe-5.8
    No fix yet
  • linux-intel-5.13
    No fix yet
  • linux-oem-5.10
    No fix yet
  • linux-oem-5.13
    No fix yet
  • linux-oem-5.14
    No fix yet
  • linux-oem-5.6
    No fix yet
  • linux-oracle-5.11
    No fix yet
  • linux-oracle-5.13
    No fix yet
  • linux-oracle-5.8
    No fix yet
  • linux-raspi2
    No fix yet
  • linux-riscv
    No fix yet
  • linux-riscv-5.11
    No fix yet
  • linux-riscv-5.8
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • linux
    Fixed in 5.15.0-185.195
  • linux-allwinner-5.19
    No fix yet
  • linux-aws
    Fixed in 5.15.0-1111.118
  • linux-aws-5.19
    No fix yet
  • linux-aws-6.2
    No fix yet
  • linux-aws-6.5
    No fix yet
  • linux-aws-6.8
    Fixed in 6.8.0-1060.63~22.04.1
  • linux-azure
    Fixed in 5.15.0-1116.125
  • linux-azure-5.19
    No fix yet
  • linux-azure-6.2
    No fix yet
  • linux-azure-6.5
    No fix yet
  • linux-azure-6.8
    Fixed in 6.8.0-1063.71~22.04.1
  • linux-azure-fde
    Fixed in 5.15.0-1116.125
  • linux-azure-fde-5.19
    No fix yet
  • linux-azure-fde-6.2
    No fix yet
  • linux-azure-fde-6.8
    Fixed in 6.8.0-1062.69~22.04.1
  • linux-gcp
    Fixed in 5.15.0-1111.121
  • linux-gcp-5.19
    No fix yet
  • linux-gcp-6.2
    No fix yet
  • linux-gcp-6.5
    No fix yet
  • linux-gcp-6.8
    Fixed in 6.8.0-1063.69~22.04.1
  • linux-gke
    Fixed in 5.15.0-1107.113
  • linux-gkeop
    Fixed in 5.15.0-1094.102
  • linux-hwe-5.19
    No fix yet
  • linux-hwe-6.2
    No fix yet
  • linux-hwe-6.5
    No fix yet
  • linux-hwe-6.8
    Fixed in 6.8.0-136.136~22.04.1
  • linux-ibm
    Fixed in 5.15.0-1105.109
  • linux-ibm-6.8
    Fixed in 6.8.0-1060.61~22.04.1
  • linux-intel-iot-realtime
    No fix yet
  • linux-intel-iotg
    Fixed in 5.15.0-1106.112
  • linux-kvm
    Fixed in 5.15.0-1103.108
  • linux-lowlatency
    Fixed in 5.15.0-183.193
  • linux-lowlatency-hwe-5.19
    No fix yet
  • linux-lowlatency-hwe-6.2
    No fix yet
  • linux-lowlatency-hwe-6.5
    No fix yet
  • linux-lowlatency-hwe-6.8
    Fixed in 6.8.0-134.134.1~22.04.1
  • linux-nvidia
    Fixed in 5.15.0-1106.107
  • linux-nvidia-6.2
    No fix yet
  • linux-nvidia-6.5
    No fix yet

20 further packages in Ubuntu 22.04 LTS not shown (first 40 listed).

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • linux
    Fixed in 6.8.0-134.134
  • linux-aws
    Fixed in 6.8.0-1060.63
  • linux-aws-6.14
    No fix yet
  • linux-aws-6.17
    Fixed in 6.17.0-1019.19~24.04.1
  • linux-azure
    Fixed in 6.8.0-1063.71
  • linux-azure-6.11
    No fix yet
  • linux-azure-6.14
    No fix yet
  • linux-azure-6.17
    Fixed in 6.17.0-1021.21~24.04.1
  • linux-azure-fde
    Fixed in 6.8.0-1062.69
  • linux-azure-fde-6.14
    No fix yet
  • linux-azure-nvidia
    No fix yet
  • linux-azure-nvidia-6.14
    No fix yet
  • linux-gcp
    Fixed in 6.8.0-1063.69
  • linux-gcp-6.11
    No fix yet
  • linux-gcp-6.14
    No fix yet
  • linux-gcp-6.17
    Fixed in 6.17.0-1020.22~24.04.1
  • linux-gke
    Fixed in 6.8.0-1058.64
  • linux-gkeop
    Fixed in 6.8.0-1045.48
  • linux-hwe-6.11
    No fix yet
  • linux-hwe-6.14
    No fix yet
  • linux-hwe-6.17
    Fixed in 6.17.0-40.40~24.04.1
  • linux-ibm
    Fixed in 6.8.0-1060.61
  • linux-lowlatency
    Fixed in 6.8.0-134.134.1
  • linux-lowlatency-hwe-6.11
    No fix yet
  • linux-nvidia
    Fixed in 6.8.0-1058.61
  • linux-nvidia-6.11
    No fix yet
  • linux-nvidia-6.17
    Fixed in 6.17.0-1026.26
  • linux-nvidia-lowlatency
    Fixed in 6.8.0-1058.61.1
  • linux-nvidia-tegra
    Fixed in 6.8.0-1029.30
  • linux-oem-6.11
    No fix yet
  • linux-oem-6.14
    No fix yet
  • linux-oem-6.17
    Fixed in 6.17.0-1028.28
  • linux-oem-6.8
    No fix yet
  • linux-oracle
    Fixed in 6.8.0-1057.58
  • linux-oracle-6.14
    No fix yet
  • linux-oracle-6.17
    Fixed in 6.17.0-1018.18~24.04.1
  • linux-raspi
    Fixed in 6.8.0-1060.64
  • linux-raspi-realtime
    No fix yet
  • linux-realtime
    No fix yet
  • linux-riscv
    No fix yet

3 further packages in Ubuntu 24.04 LTS not shown (first 40 listed).

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 25.10

  • linux
    Fixed in 6.17.0-40.40
  • linux-aws
    Fixed in 6.17.0-1019.19
  • linux-azure
    No fix yet
  • linux-azure-fde
    No fix yet
  • linux-gcp
    Fixed in 6.17.0-1020.22
  • linux-oracle
    Fixed in 6.17.0-1018.18
  • linux-raspi
    Fixed in 6.17.0-1021.21
  • linux-realtime
    Fixed in 6.17.0-1017.19
  • linux-riscv
    Fixed in 6.17.0-40.40.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Nvidia-BlueField 22.04 LTS

  • linux-bluefield
    Fixed in 5.15.0-1095.97

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Nvidia-BlueField 24.04 LTS

  • linux-bluefield
    Fixed in 6.8.0-1026.30

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • linux-aws-5.15
    Fixed in 5.15.0-1111.118~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-azure-5.15
    Fixed in 5.15.0-1116.125~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-azure-fde-5.15
    Fixed in 5.15.0-1116.125~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-gcp-5.15
    Fixed in 5.15.0-1111.121~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-hwe-5.15
    Fixed in 5.15.0-185.195~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-ibm-5.15
    Fixed in 5.15.0-1105.109~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-intel-iotg-5.15
    Fixed in 5.15.0-1106.112~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-lowlatency-hwe-5.15
    Fixed in 5.15.0-183.193~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-nvidia-tegra-5.15
    Fixed in 5.15.0-1063.63~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-oracle-5.15
    Fixed in 5.15.0-1108.114~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-riscv-5.15
    Fixed in 5.15.0-1105.109~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-updates 22.04 LTS

  • linux-aws-fips
    Fixed in 5.15.0-1111.118+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-azure-fips
    Fixed in 5.15.0-1116.125+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-fips
    Fixed in 5.15.0-185.195+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-gcp-fips
    Fixed in 5.15.0-1111.121+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-updates 24.04 LTS

  • linux-aws-fips
    Fixed in 6.8.0-1060.63+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-azure-fips
    Fixed in 6.8.0-1062.69+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-fips
    Fixed in 6.8.0-134.134+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-gcp-fips
    Fixed in 6.8.0-1063.69+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro Realtime 22.04 LTS

  • linux-intel-iot-realtime
    Fixed in 5.15.0-1103.105
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-realtime
    Fixed in 5.15.0-1110.119
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-realtime-6.8
    Fixed in 6.8.1-1055.56~22.04.1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro Realtime 24.04 LTS

  • linux-raspi-realtime
    Fixed in 6.8.0-2049.50
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-realtime
    Fixed in 6.8.1-1055.56
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-realtime-6.14
    No fix yet
  • linux-realtime-6.17
    Fixed in 6.17.0-1017.19~24.04.1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.