fs/seq_file.c in the Linux kernel 3.16 through 5.13.x before 5.13.4 does not properly restrict seq buffer allocations, leading to an integer overflow, an Out-of-bounds Write, and escalation to root by an unprivileged user, aka CID-8cae8cd89f05.
[
{
"events": [
{
"introduced": "3.16"
},
{
"fixed": "4.4.276"
}
]
},
{
"events": [
{
"introduced": "4.5"
},
{
"fixed": "4.9.276"
}
]
},
{
"events": [
{
"introduced": "4.10"
},
{
"fixed": "4.14.240"
}
]
},
{
"events": [
{
"introduced": "4.15"
},
{
"fixed": "4.19.198"
}
]
},
{
"events": [
{
"introduced": "4.20"
},
{
"fixed": "5.4.134"
}
]
},
{
"events": [
{
"introduced": "5.5"
},
{
"fixed": "5.10.52"
}
]
},
{
"events": [
{
"introduced": "5.11"
},
{
"fixed": "5.12.19"
}
]
},
{
"events": [
{
"introduced": "5.13"
},
{
"fixed": "5.13.4"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "34"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "9.0"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "10.0"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "8.2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "8.3"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "8.4"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "9.0"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "12.4.2-02044"
}
]
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-33909.json"
[
{
"id": "CVE-2021-33909-37310894",
"deprecated": false,
"digest": {
"length": 101.0,
"function_hash": "33647813340154487149123856384192856444"
},
"source": "https://github.com/torvalds/linux/commit/8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b",
"target": {
"function": "seq_buf_alloc",
"file": "fs/seq_file.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-33909-c0c0a02a",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"74254866291374402956710747649521950744",
"80765060961419181796369186824257428641",
"30272898263732629582390626314069094611",
"249931424290703359451893110809274264261"
]
},
"source": "https://github.com/torvalds/linux/commit/8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b",
"target": {
"file": "fs/seq_file.c"
},
"signature_type": "Line",
"signature_version": "v1"
}
]