CVE-2022-48828

NFSD: Fix ia_size underflow

9.1 critical EPSS 0.63%

Published 16 Jul 2024 Updated 14 Oct 2026 CNA: Linux

Check your servers for CVE-2022-48828

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-48828 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

NFSD: Fix ia_size underflow

iattr::ia_size is a loff_t, which is a signed 64-bit type. NFSv3 and NFSv4 both define file size as an unsigned 64-bit type. Thus there is a range of valid file size values an NFS client can send that is already larger than Linux can handle.

Currently decode_fattr4() dumps a full u64 value into ia_size. If that value happens to be larger than S64_MAX, then ia_size underflows. I'm about to fix up the NFSv3 behavior as well, so let's catch the underflow in the common code path: nfsd_setattr().

Severity (CVSS)

9.1 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.63%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 51.5% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before d2211e6e34d0755f35e2f8c22d81999fa81cfc71
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 38d02ba22e43b6fc7d291cf724bc6e3b7be6626b
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8e0ecaf7a7e57b30284d6b3289cc436100fadc48
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before da22ca1ad548429d7822011c54cfe210718e0aa7
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e6faac3f58c7c4176b66f63def17a34232a17b0e
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 5.4.295 up to and including 5.4.*
unaffected from 5.10.220 up to and including 5.10.*
unaffected from 5.15.24 up to and including 5.15.*
unaffected from 5.16.10 up to and including 5.16.*
unaffected 5.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48828 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48828

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-48828
trivy image --scanners vuln IMAGE | grep CVE-2022-48828

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-48828 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.