In the Linux kernel, the following vulnerability has been resolved:
ptp: fix integer overflow in maxvclocksstore
On 32bit systems, the "4 * max" multiply can overflow. Use kcalloc() to do the allocation to prevent this.
[
{
"signature_type": "Line",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f",
"deprecated": false,
"id": "CVE-2024-40994-01153406",
"signature_version": "v1",
"digest": {
"line_hashes": [
"81204044890582974385090810605265120527",
"42835908711246536643601465704436208283",
"207628092861289247094232949661422565850",
"290276849524059096702845533598530076448",
"326067599389509559978508164878105893271"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81d23d2a24012e448f651e007fac2cfd20a45ce0",
"deprecated": false,
"id": "CVE-2024-40994-0e0c8abf",
"signature_version": "v1",
"digest": {
"length": 801.0,
"function_hash": "73916334709048910015180635953479305100"
}
},
{
"signature_type": "Function",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f",
"deprecated": false,
"id": "CVE-2024-40994-9c9a96c9",
"signature_version": "v1",
"digest": {
"length": 801.0,
"function_hash": "73916334709048910015180635953479305100"
}
},
{
"signature_type": "Line",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81d23d2a24012e448f651e007fac2cfd20a45ce0",
"deprecated": false,
"id": "CVE-2024-40994-afc919b1",
"signature_version": "v1",
"digest": {
"line_hashes": [
"81204044890582974385090810605265120527",
"42835908711246536643601465704436208283",
"207628092861289247094232949661422565850",
"290276849524059096702845533598530076448",
"326067599389509559978508164878105893271"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b03da87d0b7074c93d9662c6e1a8939f9b8b86e",
"deprecated": false,
"id": "CVE-2024-40994-b269cc61",
"signature_version": "v1",
"digest": {
"length": 801.0,
"function_hash": "73916334709048910015180635953479305100"
}
},
{
"signature_type": "Line",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e1fccfb4638ee6188377867f6015d0ce35764a8e",
"deprecated": false,
"id": "CVE-2024-40994-b98d44d7",
"signature_version": "v1",
"digest": {
"line_hashes": [
"81204044890582974385090810605265120527",
"42835908711246536643601465704436208283",
"207628092861289247094232949661422565850",
"290276849524059096702845533598530076448",
"326067599389509559978508164878105893271"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e1fccfb4638ee6188377867f6015d0ce35764a8e",
"deprecated": false,
"id": "CVE-2024-40994-bef7e6ae",
"signature_version": "v1",
"digest": {
"length": 801.0,
"function_hash": "73916334709048910015180635953479305100"
}
},
{
"signature_type": "Line",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b03da87d0b7074c93d9662c6e1a8939f9b8b86e",
"deprecated": false,
"id": "CVE-2024-40994-c5300024",
"signature_version": "v1",
"digest": {
"line_hashes": [
"81204044890582974385090810605265120527",
"42835908711246536643601465704436208283",
"207628092861289247094232949661422565850",
"290276849524059096702845533598530076448",
"326067599389509559978508164878105893271"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@666e934d749e50a37f3796caaf843a605f115b6f",
"deprecated": false,
"id": "CVE-2024-40994-d7b24786",
"signature_version": "v1",
"digest": {
"length": 801.0,
"function_hash": "73916334709048910015180635953479305100"
}
},
{
"signature_type": "Line",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@666e934d749e50a37f3796caaf843a605f115b6f",
"deprecated": false,
"id": "CVE-2024-40994-e63cb59b",
"signature_version": "v1",
"digest": {
"line_hashes": [
"81204044890582974385090810605265120527",
"42835908711246536643601465704436208283",
"207628092861289247094232949661422565850",
"290276849524059096702845533598530076448",
"326067599389509559978508164878105893271"
],
"threshold": 0.9
}
}
]