Linux Kernel up to 6.17-rc3 xfs xfs_attr_leaf_get escape output

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.5 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as critical, has been found in Linux Kernel up to 6.17-rc3. Affected by this vulnerability is the function xfs_attr_leaf_get of the component xfs. Performing a manipulation results in escape output.
This vulnerability was named CVE-2025-39835. There is no available exploit.
It is advisable to upgrade the affected component.
Details
A vulnerability classified as critical has been found in Linux Kernel up to 6.17-rc3. This affects the function xfs_attr_leaf_get of the component xfs. The manipulation with an unknown input leads to a escape output vulnerability. CWE is classifying the issue as CWE-116. The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved. The impact remains unknown. The summary by CVE is:
In the Linux kernel, the following vulnerability has been resolved: xfs: do not propagate ENODATA disk errors into xattr code ENODATA (aka ENOATTR) has a very specific meaning in the xfs xattr code; namely, that the requested attribute name could not be found. However, a medium error from disk may also return ENODATA. At best, this medium error may escape to userspace as "attribute not found" when in fact it's an IO (disk) error. At worst, we may oops in xfs_attr_leaf_get() when we do: error = xfs_attr_leaf_hasname(args, &bp); if (error == -ENOATTR) { xfs_trans_brelse(args->trans, bp); return error; } because an ENODATA/ENOATTR error from disk leaves us with a null bp, and the xfs_trans_brelse will then null-deref it. As discussed on the list, we really need to modify the lower level IO functions to trap all disk errors and ensure that we don't let unique errors like this leak up into higher xfs functions - many like this should be remapped to EIO. However, this patch directly addresses a reported bug in the xattr code, and should be safe to backport to stable kernels. A larger-scope patch to handle more unique errors at lower levels can follow later. (Note, prior to 07120f1abdff we did not oops, but we did return the wrong error code to userspace.)
It is possible to read the advisory at git.kernel.org. This vulnerability is uniquely identified as CVE-2025-39835 since 04/16/2025. Technical details of the vulnerability are known, but there is no available exploit. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 01/16/2026).
The vulnerability scanner Nessus provides a plugin with the ID 265198 (Linux Distros Unpatched Vulnerability : CVE-2025-39835), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 5.10.242, 5.15.191, 6.1.150, 6.6.104, 6.12.45, 6.16.5 or 6.17-rc4 eliminates this vulnerability. Applying the patch 157ddfb05961c68ab7d457a462822a698e4e4bf4/90bae69c2959c39912f0c2f07a9a7894f3fc49f5/e358d4b6225e4c1eb208686a05e360ef8df59e07/d3cc7476b89fb45b7e00874f4f56f6b928467c60/dcdf36f1b67884c722abce9b8946e34ffb9f67c8/39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8/ae668cd567a6a7622bc813ee0bb61c42bed61ba7 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (265198) and CERT Bund (WID-SEC-2025-2077). Be aware that VulDB is the high quality source for vulnerability data.
Affected
- Debian Linux
- Amazon Linux 2
- Red Hat Enterprise Linux
- Ubuntu Linux
- SUSE Linux
- Oracle Linux
- IBM QRadar SIEM
- SUSE openSUSE
- Open Source Linux Kernel
- RESF Rocky Linux
- Dell Secure Connect Gateway
Product
Type
Vendor
Name
Version
- 5.10.241
- 5.15.190
- 6.1.149
- 6.6.103
- 6.12.0
- 6.12.1
- 6.12.2
- 6.12.3
- 6.12.4
- 6.12.5
- 6.12.6
- 6.12.7
- 6.12.8
- 6.12.9
- 6.12.10
- 6.12.11
- 6.12.12
- 6.12.13
- 6.12.14
- 6.12.15
- 6.12.16
- 6.12.17
- 6.12.18
- 6.12.19
- 6.12.20
- 6.12.21
- 6.12.22
- 6.12.23
- 6.12.24
- 6.12.25
- 6.12.26
- 6.12.27
- 6.12.28
- 6.12.29
- 6.12.30
- 6.12.31
- 6.12.32
- 6.12.33
- 6.12.34
- 6.12.35
- 6.12.36
- 6.12.37
- 6.12.38
- 6.12.39
- 6.12.40
- 6.12.41
- 6.12.42
- 6.12.43
- 6.12.44
- 6.16.0
- 6.16.1
- 6.16.2
- 6.16.3
- 6.16.4
- 6.17-rc1
- 6.17-rc2
- 6.17-rc3
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.6VulDB Meta Temp Score: 6.5
VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Escape outputCWE: CWE-116 / CWE-74 / CWE-707
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: Partially
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 265198
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-39835
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Kernel 5.10.242/5.15.191/6.1.150/6.6.104/6.12.45/6.16.5/6.17-rc4
Patch: 157ddfb05961c68ab7d457a462822a698e4e4bf4/90bae69c2959c39912f0c2f07a9a7894f3fc49f5/e358d4b6225e4c1eb208686a05e360ef8df59e07/d3cc7476b89fb45b7e00874f4f56f6b928467c60/dcdf36f1b67884c722abce9b8946e34ffb9f67c8/39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8/ae668cd567a6a7622bc813ee0bb61c42bed61ba7
Timeline
04/16/2025 CVE reserved09/16/2025 Advisory disclosed
09/16/2025 VulDB entry created
01/16/2026 VulDB entry last update
Sources
Vendor: kernel.orgAdvisory: git.kernel.org
Status: Confirmed
CVE: CVE-2025-39835 (🔒)
GCVE (CVE): GCVE-0-2025-39835
GCVE (VulDB): GCVE-100-324423
CERT Bund: WID-SEC-2025-2077 - Linux Kernel: Mehrere Schwachstellen
Entry
Created: 09/16/2025 16:00Updated: 01/16/2026 23:47
Changes: 09/16/2025 16:00 (59), 09/20/2025 02:05 (2), 12/27/2025 20:44 (7), 01/16/2026 23:47 (11)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.