CVE-2022-49274: ocfs2: fix crash when mount with quota enabled

Published Feb 26, 2025
·
Updated

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

ocfs2: fix crash when mount with quota enabled

There is a reported crash when mounting ocfs2 with quota enabled.

RIP: 0010:ocfs2qinfolockresinit+0x44/0x50 [ocfs2] Call Trace: ocfs2localreadinfo+0xb9/0x6f0 [ocfs2] dquotloadquotasb+0x216/0x470 dquotloadquotainode+0x85/0x100 ocfs2enablequotas+0xa0/0x1c0 [ocfs2] ocfs2fillsuper.cold+0xc8/0x1bf [ocfs2] mountbdev+0x185/0x1b0 legacygettree+0x27/0x40 vfsgettree+0x25/0xb0 pathmount+0x465/0xac0 x64sysmount+0x103/0x140

It is caused by when initializing dqigqlock, the corresponding dqitype and dqisb are not properly initialized.

This issue is introduced by commit 6c85c2c72819, which wants to avoid accessing uninitialized variables in error cases. So make global quota info properly initialized.

Affected Software

8 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.15<5.15.33
Linux Linux kernel>=5.16<5.16.19
Linux Linux kernel>=5.17<5.17.2
debian/linux<5.17.3-1
5.17.3-1
debian/linux<5.17.3-1
5.17.3-1
debian/linux<5.17.3-1
5.17.3-1
debian/linux
5.17.3-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.17.3-1

Event History

Feb 26, 2025
CVE Published
via MITRE·01:56 AM
Data Sourced
via MITRE·01:56 AM
Description
Data Sourced
via NVD·07:01 AM
Description
Data Sourced
via OSV·07:01 AM
DescriptionSeverityAffected Software
Sep 22, 2025
Data Sourced
via NVD·08:33 PM
RemedySeverityWeaknessAffected Software
Aug 4, 2026
Data Sourced
via MITRE·09:04 AM
Severity
Event
via MITRE·09:04 AM
Updated
via NVD·10:17 AM
Severity

Frequently Asked Questions

1

Which systems are exposed to this crash?

Systems mounting an OCFS2 filesystem with quotas enabled are exposed. The failure occurs during the mount path while OCFS2 loads quota information.

2

What is required to trigger the issue?

A local mount operation is required, with OCFS2 quotas enabled. The supplied severity vector indicates no privileges are required but user interaction is required; no remote attack path is described.

3

What is the impact if the issue is triggered?

The reported outcome is a kernel crash during the OCFS2 mount operation. The crash is caused by global quota lock initialization using quota type and superblock fields that were not properly initialized.

4

What can be done if the fix cannot be applied immediately?

Avoid mounting OCFS2 filesystems with quotas enabled until the relevant kernel fix is available. This prevents the vulnerable quota-initialization path from being exercised.

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