CVE-2022-48827: NFSD: Fix the behavior of READ near OFFSET_MAX
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Fix the behavior of READ near OFFSET_MAX
Dan Aloni reports:
> Due to commit 8cfb9015280d ("NFS: Always provide aligned buffers to
> the RPC read layers") on the client, a read of 0xfff is aligned up
> to server rsize of 0x1000.
>
> As a result, in a test where the server has a file of size
> 0x7fffffffffffffff, and the client tries to read from the offset
> 0x7ffffffffffff000, the read causes loff_t overflow in the server
> and it returns an NFS code of EINVAL to the client. The client as
> a result indefinitely retries the request.
The Linux NFS client does not handle NFS?ERR_INVAL, even though all
NFS specifications permit servers to return that status code for a
READ.
Instead of NFS?ERR_INVAL, have out-of-range READ requests succeed
and return a short result. Set the EOF flag in the result to prevent
the client from retrying the READ request. This behavior appears to
be consistent with Solaris NFS servers.
Note that NFSv3 and NFSv4 use u64 offset values on the wire. These
must be converted to loff_t internally before use -- an implicit
type cast is not adequate for this purpose. Otherwise VFS checks
against sb->s_maxbytes do not work properly.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel NFS server bug where a read request near the largest possible file offset can trigger incorrect error handling and repeated client retries. The main business risk is availability degradation for systems using Linux NFSD, not data theft or code execution based on the provided sources.
Executive priority
Handle in normal vulnerability remediation cycles, with faster action for critical NFS servers or affected appliances. There is no cited active exploitation, but the bug can affect service reliability in environments depending on NFS availability.
Technical view
Linux NFSD mishandled READ requests near OFFSET_MAX because NFSv3/NFSv4 u64 offsets were not safely converted to loff_t before VFS checks. The fix changes out-of-range READ behavior to return a short successful result with EOF, preventing indefinite client retries after NFSERR_INVAL.
Likely exposure
Exposure is most relevant to Linux systems running the kernel NFS server and serving NFS clients, especially where very large or sparse files and high offsets are possible. The provided affected-version data is incomplete and should be mapped through distribution or vendor advisories.
Exploitation context
The source bundle does not show KEV listing, public exploitation, or exploit maturity. The scenario requires crafted or edge-case NFS READ behavior near maximum offsets. Treat this as an availability and reliability issue unless vendor advisories state broader impact.
Researcher notes
The key technical issue is offset conversion and overflow handling for NFS READ near OFFSET_MAX. Evidence supports a kernel-side NFSD fix and client retry side effect, but the bundle lacks CVSS, CWE, package-level fixed versions, and exploit-status details.
Mitigation direction
Apply Linux kernel or distribution updates that include the referenced NFSD fix.
Check appliance and OEM advisories, including Siemens notices where applicable.
Limit NFS access to trusted networks and authenticated clients.
Review NFS service exposure on internet-facing or broadly reachable hosts.
Prioritize systems serving critical workloads or very large files.
Validation and detection
Inventory hosts running Linux NFSD or embedded products using Linux NFSD.
Confirm deployed kernels include a fixed stable commit or vendor backport.
Check vendor advisories for affected product and firmware mappings.
Review NFS client retry, server error, and availability metrics for anomalies.
Avoid offensive reproduction on production NFS services.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2022-48827 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.