# CVE-2026-98038: bpf: Keep refcount\_acquire nullable for borrowed RCU kptrs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **Published:** 2026-09-25T10:23:51.746Z
- **Modified:** 2026-10-21T13:21:19.710Z

## Who should check

- Anyone running Linux \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 85bfc8b6db43502444c428eaa2de20bdd2fb9064; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 85074498228a2500ea8b8039c49cc1ab8ad5328f; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< dc36739e5cc9f60485418a910b42bc95339218d2
- Anyone running Linux 6.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Keep refcount\_acquire nullable for borrowed RCU kptrs

bpf\_refcount\_acquire() is fallible for a borrowed reference because the
object may have reached a zero refcount. The verifier therefore keeps
KF\_RET\_NULL on the return value unless the argument is an owning reference.

An RCU-protected load of a local kptr is marked MEM\_ALLOC, but it only
receives NON\_OWN\_REF when the pointee contains a graph node. A refcounted
object without a graph node consequently looks like an owning reference
even though the loaded register has no acquired reference state. If the
program drops the last real reference while remaining in the RCU critical
section, refcount\_inc\_not\_zero() returns NULL while the verifier treats the
result as non-NULL.

Only classify the argument as owning when it is backed by a verifier-tracked
reference. This retains the non-NULL return for pointers from bpf\_obj\_new(),
bpf\_kptr\_xchg(), or an earlier successful acquisition, while requiring a
NULL check for borrowed RCU kptrs.

\[ kkd: Rewrote commit log \]

## Affected and fixed versions

- Linux: \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 85bfc8b6db43502444c428eaa2de20bdd2fb9064; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 85074498228a2500ea8b8039c49cc1ab8ad5328f; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< dc36739e5cc9f60485418a910b42bc95339218d2 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98038. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98038.md
Affected: Linux >= 1b12171533a9bb23cf6fba7262b479028b65e1e8, < 85bfc8b6db43502444c428eaa2de20bdd2fb9064; >= 1b12171533a9bb23cf6fba7262b479028b65e1e8, < 8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6; >= 1b12171533a9bb23cf6fba7262b479028b65e1e8, < 85074498228a2500ea8b8039c49cc1ab8ad5328f; >= 1b12171533a9bb23cf6fba7…
Fixed in: Linux 85bfc8b6db43502444c428eaa2de20bdd2fb9064, Linux 8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6, Linux 85074498228a2500ea8b8039c49cc1ab8ad5328f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98038 being exploited?

There is no confirmed exploitation: CVE-2026-98038 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98038?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98038?

Linux \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 85bfc8b6db43502444c428eaa2de20bdd2fb9064; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< 85074498228a2500ea8b8039c49cc1ab8ad5328f; \>= 1b12171533a9bb23cf6fba7262b479028b65e1e8, \< dc36739e5cc9f60485418a910b42bc95339218d2; Linux 6.8.

### Is there a fix for CVE-2026-98038?

Yes. Fixed in Linux 85bfc8b6db43502444c428eaa2de20bdd2fb9064, Linux 8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6, Linux 85074498228a2500ea8b8039c49cc1ab8ad5328f. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98038?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/85bfc8b6db43502444c428eaa2de20bdd2fb9064>
- other: <https://git.kernel.org/stable/c/8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6>
- other: <https://git.kernel.org/stable/c/85074498228a2500ea8b8039c49cc1ab8ad5328f>
- other: <https://git.kernel.org/stable/c/dc36739e5cc9f60485418a910b42bc95339218d2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98038>

HTML: <https://flawdb.com/CVE-2026-98038> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98038>
