In the Linux kernel, the following vulnerability has been resolved:
gfs2: Fix use-after-free in gfs2glockshrink_scan
The GLFLRU flag is checked under lrulock in gfs2glockremovefromlru() to remove the glock from the lru list in __gfs2glockput().
On the shrink scan path, the same flag is cleared under lrulock but because of condreschedlock(&lrulock) in gfs2disposeglock_lru(), progress on the put side can be made without deleting the glock from the lru list.
Keep GLFLRU across the race window opened by condreschedlock(&lrulock) to ensure correct behavior on both sides - clear GLFLRU after listdel under lru_lock.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47254.json"
[
{
"events": [
{
"introduced": "4.4.181"
},
{
"fixed": "4.4.274"
}
]
},
{
"events": [
{
"introduced": "4.9.180"
},
{
"fixed": "4.9.274"
}
]
},
{
"events": [
{
"introduced": "4.14.123"
},
{
"fixed": "4.14.238"
}
]
},
{
"events": [
{
"introduced": "4.19.47"
},
{
"fixed": "4.19.196"
}
]
},
{
"events": [
{
"introduced": "5.0.20"
},
{
"fixed": "5.1"
}
]
},
{
"events": [
{
"introduced": "5.1.6"
},
{
"fixed": "5.4.127"
}
]
},
{
"events": [
{
"introduced": "5.5"
},
{
"fixed": "5.10.45"
}
]
},
{
"events": [
{
"introduced": "5.11"
},
{
"fixed": "5.12.12"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc1"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc3"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc4"
}
]
}
]