In the Linux kernel before 4.15, fs/ocfs2/aops.c omits use of a semaphore and consequently has a race condition for access to the extent tree during read operations in DIRECT mode, which allows local users to cause a denial of service (BUG) by modifying a certain e_cpos field.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-18224.json"
[
{
"id": "CVE-2017-18224-32a8e4ee",
"target": {
"file": "fs/ocfs2/aops.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@3e4c56d41eef5595035872a2ec5a483f42e8917f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"5162715443606892590799831740205744521",
"128359146531611493172361942354375709571",
"58045617719448901602728240354851788267",
"187541756155790162218003506290452177645",
"255537864546443000644542916513180046871",
"116902827336587112711753667479823608411",
"152727869256418446582468995634758204725",
"264995030896180096647412102897905516209",
"312200737512780175559081197722114184049",
"116772614415944212183367417953635408850",
"325226999709475483104008140436714799382",
"113954760577455062992555759799071533698",
"135872304227342208836044538789675135898",
"143608932238286981951653257357293985976",
"278514453997123556826487186076042588233",
"327890114867898526601894938846848319747",
"71239663559758583121352929137350381763",
"77833009379462646359180804541294282028",
"83314399719200110345079731038358851601"
]
},
"signature_type": "Line"
},
{
"id": "CVE-2017-18224-76673316",
"target": {
"function": "ocfs2_direct_IO",
"file": "fs/ocfs2/aops.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@3e4c56d41eef5595035872a2ec5a483f42e8917f",
"digest": {
"function_hash": "86544914293883996168551202875094061686",
"length": 550.0
},
"signature_type": "Function"
},
{
"id": "CVE-2017-18224-db12981b",
"target": {
"function": "ocfs2_dio_get_block",
"file": "fs/ocfs2/aops.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@3e4c56d41eef5595035872a2ec5a483f42e8917f",
"digest": {
"function_hash": "277927482068575095174967312625125355606",
"length": 2545.0
},
"signature_type": "Function"
}
]