CVE-2022-49296
ceph: fix possible deadlock when holding Fwb to get inline_data
Mitigation
- Upgrade Linux to 825978fd6a0defc3c29d8a38b6cea76a0938d21e or later.
Who should check
- Anyone running Linux >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 292b7a7275ce535a1abfa4dd0b2e586162aaae1e; >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 825978fd6a0defc3c29d8a38b6cea76a0938d21e
- Anyone running Linux 5.18
Vulnerability facts
- Affected
- Linux >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 292b7a7275ce535a1abfa4dd0b2e586162aaae1e; >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 825978fd6a0defc3c29d8a38b6cea76a0938d21e; Linux 5.18
- Fixed in
- Linux 292b7a7275ce535a1abfa4dd0b2e586162aaae1e, Linux 825978fd6a0defc3c29d8a38b6cea76a0938d21e
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 5, 2026-11-26)
- CWE
- CWE-667
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ceph: fix possible deadlock when holding Fwb to get inline_data 1, mount with wsync. 2, create a file with O_RDWR, and the request was sent to mds.0: ceph_atomic_open()--> ceph_mdsc_do_request(openc) finish_open(file, dentry, ceph_open)--> ceph_open()--> ceph_init_file()--> ceph_init_file_info()--> ceph_uninline_data()--> { ... if (inline_version == 1 || /* initial version, no data */ inline_version == CEPH_INLINE_NONE) goto out_unlock; ... } The inline_version will be 1, which is the initial version for the new create file. And here the ci->i_inline_version will keep with 1, it's buggy. 3, buffer write to the file immediately: ceph_write_iter()--> ceph_get_caps(file, need=Fw, want=Fb, ...); generic_perform_write()--> a_ops->write_begin()--> ceph_write_begin()--> netfs_write_begin()--> netfs_begin_read()--> netfs_rreq_submit_slice()--> netfs_read_from_server()--> rreq->netfs_ops->issue_read()--> ceph_netfs_issue_read()--> { ... if (ci->i_inline_version != CEPH_INLINE_NONE && ceph_netfs_issue_op_inline(subreq)) return; ... } ceph_put_cap_refs(ci, Fwb); The ceph_netfs_issue_op_inline() will send a getattr(Fsr) request to mds.1. 4, then the mds.1 will request the rd lock for CInode::filelock from the auth mds.0, the mds.0 will do the CInode::filelock state transation from excl --> sync, but it need to revoke the Fxwb caps back from the clients. While the kernel client has aleady held the Fwb caps and waiting for the getattr(Fsr). It's deadlock! URL: https://tracker.ceph.com/issues/55377
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49296. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49296.md Affected: Linux >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 292b7a7275ce535a1abfa4dd0b2e586162aaae1e; >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 825978fd6a0defc3c29d8a38b6cea76a0938d21e; Linux 5.18 Fixed in: Linux 292b7a7275ce535a1abfa4dd0b2e586162aaae1e, Linux 825978fd6a0defc3c29d8a38b6cea76a0938d21e 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.
References
FAQ
Is CVE-2022-49296 being exploited?
There is no confirmed exploitation: CVE-2022-49296 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49296?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49296?
Linux >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 292b7a7275ce535a1abfa4dd0b2e586162aaae1e; >= 083db6fd3e73fc4f9ee74d2da1012a94216d6a60, < 825978fd6a0defc3c29d8a38b6cea76a0938d21e; Linux 5.18.
Is there a fix for CVE-2022-49296?
Yes. Fixed in Linux 292b7a7275ce535a1abfa4dd0b2e586162aaae1e, Linux 825978fd6a0defc3c29d8a38b6cea76a0938d21e. Upgrade Linux to 825978fd6a0defc3c29d8a38b6cea76a0938d21e or later.
How do I check if I'm affected by CVE-2022-49296?
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.