CVE-2022-49688: afs: Fix dynamic root getattr

Published Feb 26, 2025
·
Updated

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

afs: Fix dynamic root getattr

The recent patch to make afsgetattr consult the server didn't account for the pseudo-inodes employed by the dynamic root-type afs superblock not having a volume or a server to access, and thus an oops occurs if such a directory is stat'd.

Fix this by checking to see if the vnode->volume pointer actually points anywhere before following it in afsgetattr().

This can be tested by stat'ing a directory in /afs. It may be sufficient just to do "ls /afs" and the oops looks something like:

BUG: kernel NULL pointer dereference, address: 0000000000000020 ... RIP: 0010:afsgetattr+0x8b/0x14b ... Call Trace: <TASK> vfsstatx+0x79/0xf5 vfsfstatat+0x49/0x62

Affected Software

11 affected components
Linux Linux kernel
Linux Linux kernel>=4.19.245<4.19.250
Linux Linux kernel>=5.4.196<5.4.202
Linux Linux kernel>=5.10.118<5.10.127
Linux Linux kernel>=5.15.42<5.15.51
Linux Linux kernel>=5.17.10<5.18
Linux Linux kernel>=5.18.1<5.18.8
Linux Linux kernel=5.18
Linux Linux kernel=5.19-rc1
Linux Linux kernel=5.19-rc2
Linux Linux kernel=5.19-rc3

Event History

Feb 26, 2025
CVE Published
via MITRE·02:24 AM
Data Sourced
via MITRE·02:24 AM
Description
Data Sourced
via NVD·07:01 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49688?

CVE-2022-49688 has a high severity rating due to the potential for unauthorized access in the Linux kernel.

2

How do I fix CVE-2022-49688?

You can fix CVE-2022-49688 by applying the latest patches from the Linux kernel that address this vulnerability.

3

What systems are affected by CVE-2022-49688?

CVE-2022-49688 affects all versions of the Linux kernel that include the AFS file system implementation.

4

What type of vulnerability is CVE-2022-49688?

CVE-2022-49688 is a security vulnerability related to improper handling of dynamic root attributes in the AFS file system.

5

When was CVE-2022-49688 disclosed?

CVE-2022-49688 was disclosed as part of a Linux kernel patch in early 2023.

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