# CVE-2026-99448: ufs: use u64 for directory size in ufs_last_byte


- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 19 Nov 2026
- **Updated:** 23 Nov 2026
- **Also known as:** AZL-114890, BELL-CVE-2026-99448, DEBIAN-CVE-2026-99448, GHSA-989j-cc5v-2hpg, UBUNTU-CVE-2026-99448

## What is CVE-2026-99448?

CVE-2026-99448 is a high-severity vulnerability in Linux, published on 19 Nov 2026. 

### Official 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.

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


Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Red Hat | 8 | not affected | `bpftool`, `kernel`, `kernel-abi-stablelists` and 43 more |  |
| Red Hat | 9 | not affected | `bpftool`, `kernel`, `kernel-64k` and 104 more |  |
| Red Hat | 10 | not affected | `kernel` |  |
| Red Hat | els/6 | end of life | `kernel`, `kernel-abi-whitelists`, `kernel-bootwrapper` and 10 more |  |
| Red Hat | els/7 | not affected | `bpftool`, `kernel`, `kernel-abi-whitelists` and 23 more |  |

## How do I fix CVE-2026-99448?

Upgrade to a fixed version.

## Is CVE-2026-99448 being exploited?

There is no known exploitation of CVE-2026-99448 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-99448 and fix it if it is affected.

What it is: CVE-2026-99448 is a high-severity vulnerability in Linux, published on 19 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-99448 in the wild and no public exploit code.

Affected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-99448/ (Markdown: https://insights.sbomify.com/CVE-2026-99448/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-99448
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99448
- OSV: https://osv.dev/vulnerability/CVE-2026-99448

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-99448/
Summaries are generated and may contain mistakes; the official description above is the record.
