CVE-2022-49655

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49655
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49655.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49655
Related
Published
2025-02-26T07:01:40Z
Modified
2025-02-26T07:01:40Z
Downstream
Summary
[none]
Details

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

fscache: Fix invalidation/lookup race

If an NFS file is opened for writing and closed, fscacheinvalidate() will be asked to invalidate the file - however, if the cookie is in the LOOKINGUP state (or the CREATING state), then request to invalidate doesn't get recorded for fscachecookiestate_machine() to do something with.

Fix this by making _fscacheinvalidate() set a flag if it sees the cookie is in the LOOKINGUP state to indicate that we need to go to invalidation. Note that this requires a count on the naccesses counter for the state machine, which that will release when it's done.

fscachecookiestate_machine() then shifts to the INVALIDATING state if it sees the flag.

Without this, an nfs file can get corrupted if it gets modified locally and then read locally as the cache contents may not get updated.

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.14-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.14-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}