CVE-2025-21731

Local privilege escalation via NBD reconnect use-after-free

Published Feb 27, 2025 · Updated Sep 8, 2026

Use-after-free in the Linux kernel NBD driver allows local users to gain elevated privileges by reconnecting a device after disconnect. nbd_genl_disconnect leaves NBD_RT_BOUND set after releasing the initial nbd_config reference, so nbd_genl_reconfigure can queue recv_work that decrements recv_threads after the configuration is freed. Reaching the flaw requires low-privileged local access and an NBD configuration whose disconnect and reconfigure operations race.

CVSS severity7.8
High
EPSS probability0.22%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Use-after-free in the Linux kernel NBD driver allows local users to gain elevated privileges by reconnecting a device after disconnect. nbd_genl_disconnect leaves NBD_RT_BOUND set after releasing the initial nbd_config reference, so nbd_genl_reconfigure can queue recv_work that decrements recv_threads after the configuration is freed. Reaching the flaw requires low-privileged local access and an NBD configuration whose disconnect and reconfigure operations race.

The record

CVE
CVE-2025-21731
Published
Feb 27, 2025
Updated
Sep 8, 2026
Vendor
Siemens
Product
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classifications
CWE-416, T1068
Attack vector
local
Privileges
authenticated

Timeline

How it unfolded

  1. Feb 27, 2025CVE publishedPublication date reported by the CVE source.
  2. Sep 8, 2026Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=V3.1.6 <*

What conditions does exploitation require?

Attack vectorlocal
Required privilegesauthenticated

What is affected?

Siemens · SIPLUS S7-1500 CPU 1518-4 PN/DP MFPversion=V3.1.6 <*
The Linux Kernel Organization · Linuxversion=4.12; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <6bef6222a3f6c7adb6396f77f25a3579d821b09a; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <844b8cdc681612ff24df62cdefddeab5772fadf1; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <9793bd5ae4bdbdb2dde401a3cab94a6bfd05e302; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <a8ee6ecde2b7bfb58c8a3afe8a9d2b848f580739; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <d208d2c52b652913b5eefc8ca434b0d6b757f68f; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <e3be8862d73cac833e0fb7602636c19c6cb94b11; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <e70a578487a47d7cf058904141e586684d1c3381; version=b7aa3d39385dc2d95899f9e379623fef446a2acd <e7343fa33751cb07c1c56b666bf37cfca357130e
Siemens · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPversion=V3.1.6 <*
Siemens · SIMATIC S7-1500 CPU 1518-4 PN/DP MFPversion=V3.1.6 <*

Published CVSS scores

7.8Siemens ProductCERTCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
7.8CISA-ADPCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-416Use After Free
T1068Exploitation for Privilege Escalation

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo