SSH Guru Blog.
← SSH Guru Blog
AI Assistance
·7 min read

Check linux kernel and MPTCP Exposure After a Remote-Root Claim

linux kernelmptcpssh securitypatching
A classic MS-DOS terminal screen displayed on a laptop keyboard with vivid illumination.
Photo: Rafael Minguet Delgado on Pexels

A critical kernel headline should trigger a careful inventory of your own systems, not an immediate copy-and-paste fix. The BigGo Finance report, titled Critical Linux Kernel Flaw: AI Gains Root Access in 53 Minutes, is a prompt to check kernel version, MPTCP state, and vendor patch status.

That headline is all we can safely treat as known here. It does not tell us the affected kernel ranges, distributions, prerequisites, attack path, fix versions, or whether MPTCP is involved. Do not infer those details from the words “critical,” “remote-root,” or “AI.” The practical response is still familiar: identify what is actually running, find the advisory from the distribution that built your kernel package, patch within your change window, and reboot where required.

Start with read-only commands. They answer the first questions without changing network settings, touching packages, or restarting a service.

Record the kernel that is actually running

SSH into the host and begin with this:

uname -a
uname -r
cat /etc/os-release

uname -r is the important line. It reports the running kernel release, which may differ from the newest kernel installed on disk. A server can download and install a fixed kernel today while continuing to run an older vulnerable kernel until its next reboot.

Keep the operating system identification beside it. Kernel version numbers do not compare cleanly across distributions. Ubuntu, Debian, Red Hat Enterprise Linux, Fedora, SUSE, and their derivatives can backport a security fix into a package whose upstream-looking version appears older than another distribution's package. Comparing only the first few digits of uname -r can lead to the wrong conclusion.

Also capture the boot context:

uptime
cat /proc/cmdline
systemd-detect-virt

The uptime tells you whether a recent maintenance reboot happened. /proc/cmdline can reveal unusual boot parameters that matter during later investigation. systemd-detect-virt distinguishes a physical host from a virtual machine when the command is available.

For a VM, check the guest first. The guest kernel is normally the relevant kernel for its own services and users. Then consider the hypervisor separately. A Proxmox host, for example, has a kernel exposure of its own that does not disappear because every guest is patched.

Write down hostname, IP or management address, running kernel, distribution release, and uptime in your incident notes. This sounds basic. It prevents a lot of confusion when several Raspberry Pis, NAS boxes, VPS instances, and virtual machines have nearly identical names.

Check whether MPTCP exists and whether it is enabled

Multipath TCP, usually shortened to MPTCP, allows one TCP connection to use more than one network path. It is useful in some mobile, multihomed, and specialist network setups. Many Linux systems do not use it at all.

Do not assume a host uses MPTCP because the kernel was built with support for it. There are three separate questions:

  1. Was MPTCP compiled into this kernel?
  2. Is it enabled at runtime?
  3. Does this host have MPTCP endpoints, limits, or active connections configured?

First, inspect the runtime setting:

sysctl net.mptcp.enabled
ls -ld /proc/sys/net/mptcp

A value of net.mptcp.enabled = 1 means the feature is enabled. A value of 0 means it is disabled. If the sysctl path does not exist, the running kernel may lack MPTCP support or expose it differently. Record the exact output rather than treating an error as proof of safety.

Next, look for the kernel build configuration. One of these paths is commonly available:

grep '^CONFIG_MPTCP' /boot/config-$(uname -r) 2>/dev/null
zgrep '^CONFIG_MPTCP' /proc/config.gz 2>/dev/null

CONFIG_MPTCP=y means MPTCP was compiled into the kernel. CONFIG_MPTCP=m means it was built as a module. If neither command returns anything, the configuration file may simply be unavailable on that system. It is not enough, by itself, to declare MPTCP absent.

Then inspect configured MPTCP objects if the ip tool supports them:

ip mptcp endpoint show
ip mptcp limits show

An empty endpoint list is meaningful. It says no MPTCP endpoints are presently configured through this interface. It does not tell you what a workload did in the past, nor does it replace the vendor's affected-configurations guidance.

Some ss versions can identify MPTCP sockets:

ss -M

Tool support varies by distribution and package age. If the command is unsupported, skip it rather than installing tools during the initial assessment.

There is an important restraint here: do not disable MPTCP with sysctl -w merely because a headline mentions it, or because you are checking it as a possible condition. A change to network transport settings can interrupt an application or a remote session. Wait until the relevant vendor advisory states that disabling it is an effective mitigation, then test the change on a non-critical host where possible.

Determine package and patch status from your vendor

The running release is only half the answer. You also need the installed kernel package version and the fixed version named by your distribution's advisory.

On Debian and Ubuntu family systems, list installed kernel image packages:

dpkg-query -W -f='${Package}\t${Version}\n' 'linux-image*' 2>/dev/null

Then inspect available package versions without installing anything:

apt-cache policy linux-image-generic linux-generic 2>/dev/null

Package names differ on appliances, cloud images, and vendor kernels. If these package names return no result, use the installed package list as your starting point and find the package that corresponds to uname -r.

On RPM-based systems, this is a useful first check:

rpm -q --whatprovides "kernel-uname-r = $(uname -r)"
rpm -q kernel kernel-core 2>/dev/null

For a system managed by DNF, checking for an update is read-only from the system's point of view:

dnf check-update kernel kernel-core

An available update does not prove that it fixes the reported issue. It may be unrelated. Equally, no available update does not prove the host is safe if the repository configuration is stale, pinned, or incomplete.

Use the distribution security advisory as the authority for all of these comparisons. Match your distribution release, architecture, package flavor, and installed package version against the advisory's fixed package version. For a NAS or appliance, the hardware vendor's update bulletin may be the authority instead of the upstream distribution's tracker.

This is also where a browser terminal is useful when you are away from your usual workstation. SSH Guru keeps the private key and session in the browser, so you can inspect a server from a Chromebook, tablet, or locked-down laptop without copying a key onto that device.

Patch carefully, then prove the host booted the fix

Once the vendor publishes a fix for a system you have identified as affected, follow that vendor's update path. Snapshot a VM or back up configuration where your environment supports it. For a home server, know what will come back after reboot and what will not. A Docker stack with missing restart policies can turn a security update into an avoidable outage.

After installing a kernel update, do not stop at “packages upgraded.” Check which kernel will boot next and whether a reboot is pending.

On Debian and Ubuntu systems, this can help:

uname -r
ls -1 /boot/vmlinuz-* 2>/dev/null

After the maintenance reboot, reconnect and run:

uname -r
uptime

The new running release must match the patched package line you recorded. If it does not, inspect the bootloader selection and any held packages before assuming the update failed.

For hosts that cannot reboot immediately, document the reason, the owner, the approved maintenance window, and any vendor-supported mitigation. “We installed the package” is not an adequate closure state for a kernel flaw when the machine is still running the old kernel.

Use AI to interpret evidence, not to issue unchecked fixes

A report like this often leads people to ask an AI assistant for a one-line cure. That is risky when the public technical facts are incomplete. A command can be syntactically valid and still disable the wrong subsystem, remove the wrong package, or restart the only route into a remote server.

We recommend feeding an assistant the relevant vendor advisory and the read-only output you collected, then asking it to explain the comparison. Before sharing terminal output with any model, remove passwords, tokens, private keys, internal addresses, and sensitive hostnames. SSH Guru's Guru scans command output for tokens, passwords, and keys before model access, and can also scrub IPs and hostnames when you choose.

Guru proposes one command at a time and labels its risk. Read-only inspection commands are tier 0. Package updates or configuration changes are tier 1. Destructive operations are tier 2 and require you to type the hostname before approval. That pause is useful during a fast-moving security event. We covered the reasoning behind that approach in AI-assisted troubleshooting needs a command gate.

Keep the order disciplined: verify the running kernel, inspect MPTCP only as a configuration fact, compare package versions with the vendor advisory, patch, reboot, and verify the kernel again. A dramatic headline should speed up that work. It should not replace it.

Comments

No comments yet. Be the first.

Leave a comment

Comments appear once the author approves them.