EST. 2026 — Notes from real server work SYSADMIN · SECURITY · AI · DIRECTADMIN Issue 01
THE SYSADMIN ALMANAC
Home / Security Update / Ubuntu HWE Fixes ksmbd CVE-2026-99565: Patch and Reboot Now
Security Update

Ubuntu HWE Fixes ksmbd CVE-2026-99565: Patch and Reboot Now

by Ton-Or ·26 Nov 2026·7 min read
Ubuntu HWE Fixes ksmbd CVE-2026-99565: Patch and Reboot Now

Administrators running Ubuntu 24.04 LTS with HWE 7.0 should check their packages and schedule a reboot soon, especially on machines running ksmbd, and check Python apps that use PyJWT

1-minute summary

Symptom / problem
ksmbd อาจอ่านเลย buffer ระหว่างเจรจา SMB ส่วน PyJWT มีบั๊กทำให้คำขอล้มเหลวและข้ามตรวจ claims เมื่อใช้ options เดิมซ้ำตามเงื่อนไข
Who should read
HWE 7.0 บน Ubuntu 24.04 LTS และผู้ใช้ python3-jwt ตาม USN โดยบั๊ก claims กระทบ Ubuntu 22.04 LTS
Fix in short
อัปเดต kernel ตามสาย ตรวจโมดูลภายนอกแล้วรีบูต และอัปเดต python3-jwt พร้อมรีสตาร์ตแอปที่โหลดไลบรารีเดิม
Jump to steps

I saw Ubuntu publish USN-9190-2 and USN-9212-1 dated 26 Nov 2026, so I put the kernel and PyJWT updates together. This round includes patches for HWE 7.0 on Ubuntu 24.04 LTS, following the 24 Nov kernel patch roundup. The PyJWT bypass refers to skipping token claims validation under the conditions explained below.

8.3ksmbd · CVSS 4.0 High
24.04 LTSAdded HWE 7.0 patches
RebootKernel ABI has changed
PyJWTUpdates vary by Ubuntu release

What this round adds to the earlier notice

Notice Systems to check Additions or fixes
USN-9190-2 Ubuntu 24.04 LTS using source package linux-hwe-7.0 Kernel patches across several subsystems, including ksmbd
USN-9212-1 python3-jwt on Ubuntu 26.04 / 24.04 / 22.04 LTS CVE-2026-102265 causes requests to fail
USN-9212-1 python3-jwt on Ubuntu 22.04 LTS CVE-2026-103001 bypasses claims validation when an options mapping is reused under specific conditions

USN-9190-1 lists Azure FDE, Oracle, Raspberry Pi and real-time packages by release, while USN-9190-2 adds HWE as another kernel line to check. This notice fixes multiple CVEs listed under References, covering filesystems, networking, drivers and other parts of the kernel. Install the full set of updates in the notice, even though this post focuses on explaining ksmbd.

How ksmbd reads past the buffer, and how severe it is

CVE-2026-99565 occurs during SMB negotiation when the receiving thread passes a request to a worker, then reads the next PDU before the worker has finished its current task. A subsequent SMB2 request may change the set of operations used to handle requests, causing the worker to use an SMB2 handler to read the original, shorter SMB1 request and read past the buffer boundary. The patch makes it wait for negotiation to finish before receiving the next PDU.

Original SMB1 requestworker still busySMB2 followsChanges operationsRead past bufferWrong handler for old taskPatch: finish negotiation before reading next requestKeep operations stable during the task
The problem is the ordering between request reception and the worker in ksmbd; this does not mean every SMB service has the same vulnerability.

Ubuntu assigns a High priority and CVSS 4.0 = 8.3, with vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N. An attacker can reach it over the network without privileges or user interaction. Exploitation still requires additional conditions. This score rates the impact on data confidentiality and availability as high. I would not conclude that this is RCE, because the description only specifies an out-of-bounds memory read.

The kernel documentation explains that ksmbd is an in-kernel SMB server that listens on port 445. Check the module, daemon and socket. Having a kernel installed that supports ksmbd does not mean the service is running. If port 445 is open, check which service is using it.

Check the kernel line, update and reboot

Check the release, kernel and packages first, without loading the module to try it.

cat /etc/os-release
uname -r
dpkg-query -W -f='${binary:Package}\t${Version}\n' 'linux-image-*' 2>/dev/null
test -d /sys/module/ksmbd && echo 'ksmbd present'
pgrep -a -x ksmbd.mountd
sudo ss -lntp 'sport = :445'

Even if the module is not found, you still need to check patches for other components, because this notice also fixes CVEs in other subsystems. The image versions the USN lists as fixed are as follows.

Package on Ubuntu 24.04 LTS Version listed as fixed in the USN
linux-image-7.0.0-44-generic 7.0.0-44.44~24.04.1
linux-image-7.0.0-44-generic-64k 7.0.0-44.44~24.04.1

Compare the metapackage against the USN table as well. uname -r shows the kernel release, which differs from the full package version.

The USN and CVE page still show different statuses

USN-9190-2 lists the fixed versions shown in the table, but the linux-hwe-7.0 row for noble on the CVE-2026-99565 page still shows Vulnerable and work in progress for the same version. The two pages still report different statuses. Compare packages against the USN and check the version offered by the repository as well. This status needs further monitoring, and it is still too early to conclude that every Ubuntu kernel line has been fully patched.

  1. Confirm the kernel line Check the release, image and metapackage in use.
  2. Prepare a maintenance window Check backups and console access in case of boot problems.
  3. Install updates Read the package change list and check external modules for the new ABI.
  4. Reboot and test Confirm the running kernel, then test services and connectivity.

The following example updates the whole system. Review APT's plan before confirming, especially packages marked for removal.

sudo apt update
apt-cache policy linux-image-generic-hwe-24.04
sudo apt full-upgrade
command -v dkms >/dev/null && dkms status
# เมื่อการติดตั้งและการเตรียมโมดูลสำเร็จแล้ว ในช่วงบำรุงรักษา
sudo reboot

Ubuntu warns that the ABI change requires third-party kernel modules to be recompiled and reinstalled. Check the results before rebooting, especially for storage or network modules. If the installation reports an error, fix it first.

uname -r
dpkg-query -W -f='${binary:Package}\t${Version}\n' "linux-image-$(uname -r)"
command -v dkms >/dev/null && dkms status
sudo journalctl -k -b --no-pager | grep -Ei 'ksmbd|module|verification|oops'

The output of uname -r should match 7.0.0-44-generic or 7.0.0-44-generic-64k, depending on the kernel line, or a newer patched release.

PyJWT: separate DoS from the claims validation bypass

USN-9212-1 describes two bugs. Administrators of apps that accept JWTs also need to check whether they use the system package or a library in a virtual environment.

CVE-2026-102265 occurs when a token header is nested deeply enough to trigger a RecursionError in the JSON parser. Apps that catch only PyJWT exceptions will not catch this error, causing the request to fail. The upstream advisory shows an example that returns HTTP 500 while the worker keeps running, so it would be wrong to conclude that every request crashes the whole process.

CVE-2026-103001 occurs when an app calls PyJWT with verify_signature disabled and the library modifies the options mapping supplied by the app. If the app reuses the same mapping and enables signature verification, settings that disable claims checks, such as expiration, may remain in place. The app may then accept a token with a valid signature but invalid claims. This bypasses claims validation while signature verification remains active. The upstream advisory explains these conditions.

Ubuntu LTS Fixed python3-jwt version per USN Scope of the notice
26.04 2.10.1-4ubuntu1.5 DoS
24.04 2.7.0-1ubuntu0.6 DoS
22.04 2.3.0-1ubuntu0.8 DoS and claims bypass

The CVE-2026-102265 page assigns 5.3 Medium, with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. Ubuntu 26.04, 24.04 and 22.04 LTS now show Fixed, matching the versions in the USN, but the affected version range is still described differently within the same page. The Description says it starts at 2.13.0, while the Ubuntu team's note says the bug has existed since upstream 2.0.0.

CVE-2026-103001 is rated 6.5 Medium, with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N. The CVE page still lists jammy as Vulnerable, but the USN says it is fixed in 2.3.0-1ubuntu0.8. These two sources still report different statuses. Compare the package version against the USN and keep monitoring the CVE page.

The Ubuntu team's note explains that 2.3.0 has an older form of the bug that was fixed in upstream 2.4.0, while the main Description discusses the bug returning in 2.11.0 through 2.13.0. Looking only at the upstream version range may therefore miss affected Ubuntu packages. Read Ubuntu's notes as well, because packages may contain backports.

dpkg-query -W -f='${binary:Package}\t${Version}\n' python3-jwt
apt-cache policy python3-jwt
sudo apt update
sudo apt install --only-upgrade python3-jwt
/usr/bin/python3 -c 'import jwt; print(jwt.__version__); print(jwt.__file__)'

The number from jwt.__version__ does not include the Ubuntu revision, so confirm it with dpkg-query as well. This command checks only the system Python. If the app runs in a virtual environment or container, check the version using the same interpreter as the app. Update the dependency using the app's update process, then restart workers that still have the old code loaded. APT does not update copies of PyJWT installed separately by the app.

Check symptoms and prioritize the work

The Ubuntu notices cited in this post do not provide specific IOCs for confirming a compromise. I recommend checking kernel logs for ksmbd, Oops or memory-related errors, then comparing their timing with SMB problems. For PyJWT, look for RecursionError tracebacks during header parsing and HTTP 500 responses from endpoints that accept tokens. These symptoms help identify where to investigate further, but cannot confirm an attack.

Check code that reuses options as well

Find places that disable verify_signature and then reuse the same mapping. Check that subsequent calls still validate expiration and all claims required by the app. Avoid logging full tokens, because anyone who can read the logs may be able to use those tokens to access the system.

CVE-2026-99565, CVE-2026-102265 and CVE-2026-103001 are not yet in CISA's KEV as of 25 Nov 2026. The sources cited in this post do not report exploitation of any of the three vulnerabilities in the wild. Absence from KEV is not evidence that no attacks have occurred.

I recommend prioritizing patches and reboots for machines running ksmbd that are reachable from untrusted networks. For PyJWT, check where the app receives tokens from and whether it reuses options, then use that information to prioritize the work. Machines that do not run ksmbd should still install the kernel updates, because the notice also fixes other CVEs.

Sources: Ubuntu USN-9190-2, Ubuntu USN-9190-1, Ubuntu CVE-2026-99565, Ubuntu USN-9212-1, Ubuntu CVE-2026-102265, Ubuntu CVE-2026-103001, Linux kernel: KSMBD, PyJWT security advisory, CISA KEV. Information current as of 26 Nov 2026. I'll come back and update this later.

Want us to set this up?

Get help with server setup, configuration, migration, or troubleshooting. Save time for the work that matters.

Get a quote

Hit something like this? Stuck somewhere?

Come trade notes on the LinuxThai board

→ Continue on the board

Comments 0

No comments yet — be the first