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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-02-26T01:56:19.586Z
- **Modified:** 2026-08-05T08:54:31.739Z

## Who should check

- Anyone running Linux \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< 7c5312fdb1dcfdc1951b018669af88d5d6420b31; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< 01931e1c4e3de5d777253acae64c0e8fd071a1dd; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< eda31f77317647b9fbf889779ee1fb6907651865; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< de19433423c7bedabbd4f9a25f7dbc62c5e78921
- Anyone running Linux 5.15

## Description

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:ocfs2\_qinfo\_lock\_res\_init+0x44/0x50 \[ocfs2\]
  Call Trace:
    ocfs2\_local\_read\_info+0xb9/0x6f0 \[ocfs2\]
    dquot\_load\_quota\_sb+0x216/0x470
    dquot\_load\_quota\_inode+0x85/0x100
    ocfs2\_enable\_quotas+0xa0/0x1c0 \[ocfs2\]
    ocfs2\_fill\_super.cold+0xc8/0x1bf \[ocfs2\]
    mount\_bdev+0x185/0x1b0
    legacy\_get\_tree+0x27/0x40
    vfs\_get\_tree+0x25/0xb0
    path\_mount+0x465/0xac0
    \_\_x64\_sys\_mount+0x103/0x140

It is caused by when initializing dqi\_gqlock, the corresponding dqi\_type
and dqi\_sb 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 and fixed versions

- Linux: \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< 7c5312fdb1dcfdc1951b018669af88d5d6420b31; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< 01931e1c4e3de5d777253acae64c0e8fd071a1dd; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< eda31f77317647b9fbf889779ee1fb6907651865; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< de19433423c7bedabbd4f9a25f7dbc62c5e78921 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49274. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49274.md
Affected: Linux >= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, < 7c5312fdb1dcfdc1951b018669af88d5d6420b31; >= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, < 01931e1c4e3de5d777253acae64c0e8fd071a1dd; >= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, < eda31f77317647b9fbf889779ee1fb6907651865; >= 6c85c2c728193d19d6a908a…
Fixed in: Linux 7c5312fdb1dcfdc1951b018669af88d5d6420b31, Linux 01931e1c4e3de5d777253acae64c0e8fd071a1dd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49274 being exploited?

There is no confirmed exploitation: CVE-2022-49274 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49274?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-49274?

Linux \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< 7c5312fdb1dcfdc1951b018669af88d5d6420b31; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< 01931e1c4e3de5d777253acae64c0e8fd071a1dd; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< eda31f77317647b9fbf889779ee1fb6907651865; \>= 6c85c2c728193d19d6a908ae9fb312d0325e65ca, \< de19433423c7bedabbd4f9a25f7dbc62c5e78921; Linux 5.15.

### Is there a fix for CVE-2022-49274?

Yes. Fixed in Linux 7c5312fdb1dcfdc1951b018669af88d5d6420b31, Linux 01931e1c4e3de5d777253acae64c0e8fd071a1dd. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49274?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7c5312fdb1dcfdc1951b018669af88d5d6420b31>
- patch: <https://git.kernel.org/stable/c/01931e1c4e3de5d777253acae64c0e8fd071a1dd>
- patch: <https://git.kernel.org/stable/c/eda31f77317647b9fbf889779ee1fb6907651865>
- patch: <https://git.kernel.org/stable/c/de19433423c7bedabbd4f9a25f7dbc62c5e78921>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49274>

HTML: <https://flawdb.com/CVE-2022-49274> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49274>
