ceph: fix potential use-after-free bug when trimming caps
In the Linux kernel, the following vulnerability has been resolved: ceph: fix potential use-after-free bug when trimming caps When trimming the caps and just after the 'session->s_cap_lock' is released in ceph_iterate_session_caps() the cap maybe removed by another thread, and when using the stale cap memory in the callbacks it will trigger use-after-free crash. We need to check the existence of the cap just after the 'ci->i_ceph_lock' being acquired. And do nothing if it's already removed.
CVE-2023-53867
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2023-53867
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "2f2dc053404febedc9c273452d9d518fb31fde72",
"lessThan": "2b2515b8095cf2149bef44383a99d5b5677f1831",
"versionType": "git"
},
{
"status": "affected",
"version": "2f2dc053404febedc9c273452d9d518fb31fde72",
"lessThan": "448875a73e16ba7d81dec9274ce9d33a12d092fb",
"versionType": "git"
},
{
"status": "affected",
"version": "2f2dc053404febedc9c273452d9d518fb31fde72",
"lessThan": "ae6e935618d99cdba11eab4714092e7e5f13cf7e",
"versionType": "git"
},
{
"status": "affected",
"version": "2f2dc053404febedc9c273452d9d518fb31fde72",
"lessThan": "aaf67de78807c59c35bafb5003d4fb457c764800",
"versionType": "git"
}
],
"programFiles": [
"fs/ceph/caps.c",
"fs/ceph/debugfs.c",
"fs/ceph/mds_client.c",
"fs/ceph/mds_client.h",
"fs/ceph/super.h"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.34"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "2.6.34",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.1.28",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.2.15",
"versionType": "semver",
"lessThanOrEqual": "6.2.*"
},
{
"status": "unaffected",
"version": "6.3.2",
"versionType": "semver",
"lessThanOrEqual": "6.3.*"
},
{
"status": "unaffected",
"version": "6.4",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/ceph/caps.c",
"fs/ceph/debugfs.c",
"fs/ceph/mds_client.c",
"fs/ceph/mds_client.h",
"fs/ceph/super.h"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2023-53867
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #30331 · Revision 1
- Added to Heist Feed
- Publisher date