CVE-2022-49655: fscache: Fix invalidation/lookup race

Published Feb 26, 2025
·
Updated

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 fscachecookiestatemachine() 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.

fscachecookiestatemachine() 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.

Affected Software

11 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.17<5.18.11
Linux Linux kernel=5.19-rc1
Linux Linux kernel=5.19-rc2
Linux Linux kernel=5.19-rc3
Linux Linux kernel=5.19-rc4
Linux Linux kernel=5.19-rc5
debian/linux<5.18.14-1
5.18.14-1
debian/linux<5.18.14-1
5.18.14-1
debian/linux<5.18.14-1
5.18.14-1
debian/linux
5.18.14-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.18.14-1

Event History

Feb 26, 2025
CVE Published
via MITRE·02:23 AM
Data Sourced
via MITRE·02:23 AM
Description
Data Sourced
via Red Hat·03:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:01 AM
Description
Data Sourced
via OSV·07:01 AM
DescriptionSeverityAffected Software
Oct 23, 2025
Data Sourced
via NVD·12:10 PM
RemedySeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49655?

CVE-2022-49655 is classified as a medium severity vulnerability in the Linux kernel.

2

How does CVE-2022-49655 impact Linux systems?

CVE-2022-49655 can cause a race condition when an NFS file is closed while being invalidated, potentially leading to unexpected behavior.

3

How do I fix CVE-2022-49655?

To fix CVE-2022-49655, update to the latest version of the Linux kernel where the vulnerability has been addressed.

4

Which versions of the Linux kernel are affected by CVE-2022-49655?

CVE-2022-49655 affects various versions of the Linux kernel prior to the fix being applied in subsequent releases.

5

What are the symptoms of exploitation of CVE-2022-49655?

Symptoms of exploitation of CVE-2022-49655 may include instability or unexpected behavior when using NFS file operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203