# CVE-2026-99448: ufs: use u64 for directory size in ufs\_last\_byte

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-28)
- **Published:** 2026-11-19T14:41:37.703Z
- **Modified:** 2026-11-23T08:17:48.600Z

## Who should check

- Anyone running Linux \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< c43f74f9a7418790f4e28bb94c1423be3ed6b22d; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 119344a21852412d867c499457b4111a0fb967f1; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 36b76a83cd622dfd52878c67437d6c3f55c44667; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 627b432794b1114ab2934f6ae6199d789842cb37; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< ae50223c56b9a1c27d4f824c9e2fbbefc8686891; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< c792858491ee39e8f6e1547c45422595cf25b415; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< ac2859c61ecf52a9e39b44b35c981dbfeb8ad54b; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 1eff23433e73d7da4f9e3529d2701e34962b161f
- Anyone running Linux 2.6.18

## Description

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

ufs: use u64 for directory size in ufs\_last\_byte

ufs1\_read\_inode() and ufs2\_read\_inode() copy the untrusted 64-bit
on-disk size into inode-\>i\_size.  ufs\_last\_byte() then truncates that
value to an unsigned int before calculating the valid extent of a
directory folio.

A directory size of exactly 4 GiB is truncated to zero.  In
ufs\_find\_entry(), subtracting the requested record length from that zero
forms an endpoint almost 4 GiB beyond the mapped folio.  A crafted UFS2
image produces:

  BUG: KASAN: use-after-free in ufs\_find\_entry+0x583/0x6e0 \[ufs\]
  Read of size 1
  ...
  ufs\_find\_entry
  ufs\_inode\_by\_name
  ufs\_lookup
  \_\_lookup\_slow
  path\_lookupat

The KASAN classification reflects that the adjacent physical page was
free; the source-level operation is an out-of-folio read.  A controlled
UFS1 test with CONFIG\_UFS\_FS\_WRITE enabled also made ufs\_find\_entry()
return a directory entry from an adjacent anonymous page.  unlink() then
passed that pointer to ufs\_delete\_entry(), which cleared the adjacent
page's 3
2-bit d\_ino.  This write result reproduced three out of three
times.

UFS normally requires a privileged mount path.  A relevant boundary is
a privileged automounter or image-processing service handling an
attacker-supplied filesystem.  The write primitive additionally requires
UFS1 to be mounted read-write with CONFIG\_UFS\_FS\_WRITE enabled; the read
is reachable with read-only UFS2.

Keep the intermediate size arithmetic at 64 bits so non-final pages are
bounded at PAGE\_SIZE.  With this change, the same controlled tests reach
the real on-disk directory entry and produce no adjacent-page write or
KASAN report.  A reproducer and full validation logs are available on
request.

The vulnerable helper is present in v7.2-rc3, v7.1, v6.18.38, v6.12.95,
v6.6.111, and upstream master at 1229e2e57a5c.  Runtime reproduction and
fix validation were performed in an x86-64 QEMU guest running v7.2-rc3
with generic KASAN.

## Affected and fixed versions

- Linux: \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< c43f74f9a7418790f4e28bb94c1423be3ed6b22d; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 119344a21852412d867c499457b4111a0fb967f1; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 36b76a83cd622dfd52878c67437d6c3f55c44667; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 627b432794b1114ab2934f6ae6199d789842cb37; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< ae50223c56b9a1c27d4f824c9e2fbbefc8686891; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< c792858491ee39e8f6e1547c45422595cf25b415; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< ac2859c61ecf52a9e39b44b35c981dbfeb8ad54b; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 1eff23433e73d7da4f9e3529d2701e34962b161f (cvelist)
- Linux: 2.6.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 1eff23433e73d7da4f9e3529d2701e34962b161f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99448.md
Affected: Linux >= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, < c43f74f9a7418790f4e28bb94c1423be3ed6b22d; >= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, < 119344a21852412d867c499457b4111a0fb967f1; >= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, < 36b76a83cd622dfd52878c67437d6c3f55c44667; >= b71034e5e67d1577424cebe…
Fixed in: Linux 119344a21852412d867c499457b4111a0fb967f1, Linux 36b76a83cd622dfd52878c67437d6c3f55c44667, Linux 627b432794b1114ab2934f6ae6199d789842cb37, Linux 1eff23433e73d7da4f9e3529d2701e34962b161f

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-99448 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

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

Linux \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< c43f74f9a7418790f4e28bb94c1423be3ed6b22d; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 119344a21852412d867c499457b4111a0fb967f1; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 36b76a83cd622dfd52878c67437d6c3f55c44667; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 627b432794b1114ab2934f6ae6199d789842cb37; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< ae50223c56b9a1c27d4f824c9e2fbbefc8686891; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< c792858491ee39e8f6e1547c45422595cf25b415; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< ac2859c61ecf52a9e39b44b35c981dbfeb8ad54b; \>= b71034e5e67d1577424cebe7bbb7d0ce134a4cd8, \< 1eff23433e73d7da4f9e3529d2701e34962b161f; Linux 2.6.18.

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

Yes. Fixed in Linux 119344a21852412d867c499457b4111a0fb967f1, Linux 36b76a83cd622dfd52878c67437d6c3f55c44667, Linux 627b432794b1114ab2934f6ae6199d789842cb37, Linux 1eff23433e73d7da4f9e3529d2701e34962b161f. Upgrade Linux to 1eff23433e73d7da4f9e3529d2701e34962b161f or later.

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

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/c43f74f9a7418790f4e28bb94c1423be3ed6b22d>
- other: <https://git.kernel.org/stable/c/119344a21852412d867c499457b4111a0fb967f1>
- other: <https://git.kernel.org/stable/c/36b76a83cd622dfd52878c67437d6c3f55c44667>
- other: <https://git.kernel.org/stable/c/627b432794b1114ab2934f6ae6199d789842cb37>
- other: <https://git.kernel.org/stable/c/ae50223c56b9a1c27d4f824c9e2fbbefc8686891>
- other: <https://git.kernel.org/stable/c/c792858491ee39e8f6e1547c45422595cf25b415>
- other: <https://git.kernel.org/stable/c/ac2859c61ecf52a9e39b44b35c981dbfeb8ad54b>
- other: <https://git.kernel.org/stable/c/1eff23433e73d7da4f9e3529d2701e34962b161f>

## 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-99448>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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