In the Linux kernel, the following vulnerability has been resolved:
net: hns3: fix out-of-bounds access may occur when coalesce info is read via debugfs
The hns3 driver define an array of string to show the coalesce info, but if the kernel adds a new mode or a new state, out-of-bounds access may occur when coalesce info is read via debugfs, this patch fix the problem.
[
{
"deprecated": false,
"id": "CVE-2023-52807-056fbecd",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f79d985c69060047426be68b7e4c1663d5d731b4",
"signature_version": "v1",
"target": {
"function": "hns3_get_coal_info",
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "260093449770686121439388052776455694604",
"length": 1473.0
}
},
{
"deprecated": false,
"id": "CVE-2023-52807-40998a7b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@07f5b8c47152cadbd9102e053dcb60685820aa09",
"signature_version": "v1",
"target": {
"function": "hns3_get_coal_info",
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "260093449770686121439388052776455694604",
"length": 1473.0
}
},
{
"deprecated": false,
"id": "CVE-2023-52807-5712221f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be1f703f39efa27b7371b9a4cd983317f1366792",
"signature_version": "v1",
"target": {
"function": "hns3_get_coal_info",
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "260093449770686121439388052776455694604",
"length": 1473.0
}
},
{
"deprecated": false,
"id": "CVE-2023-52807-7026ac18",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@53aba458f23846112c0d44239580ff59bc5c36c3",
"signature_version": "v1",
"target": {
"function": "hns3_get_coal_info",
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "260093449770686121439388052776455694604",
"length": 1473.0
}
},
{
"deprecated": false,
"id": "CVE-2023-52807-745f37ef",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be1f703f39efa27b7371b9a4cd983317f1366792",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253822126553172249915159077390880231287",
"28993521562730165251867020664730187407",
"26719518309873098502270761497777121563",
"213017259397632407956965982343556596700",
"212177329422696206686307490858778530857",
"85717952567310504093411256807132661578",
"73819540750987764161340499805013218610",
"276816200678854490922000371503787878784"
]
}
},
{
"deprecated": false,
"id": "CVE-2023-52807-9008fc37",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f79d985c69060047426be68b7e4c1663d5d731b4",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253822126553172249915159077390880231287",
"28993521562730165251867020664730187407",
"26719518309873098502270761497777121563",
"213017259397632407956965982343556596700",
"212177329422696206686307490858778530857",
"85717952567310504093411256807132661578",
"73819540750987764161340499805013218610",
"276816200678854490922000371503787878784"
]
}
},
{
"deprecated": false,
"id": "CVE-2023-52807-9e52f87c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@07f5b8c47152cadbd9102e053dcb60685820aa09",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253822126553172249915159077390880231287",
"28993521562730165251867020664730187407",
"26719518309873098502270761497777121563",
"213017259397632407956965982343556596700",
"212177329422696206686307490858778530857",
"85717952567310504093411256807132661578",
"73819540750987764161340499805013218610",
"276816200678854490922000371503787878784"
]
}
},
{
"deprecated": false,
"id": "CVE-2023-52807-ba8f0a97",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@53aba458f23846112c0d44239580ff59bc5c36c3",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253822126553172249915159077390880231287",
"28993521562730165251867020664730187407",
"26719518309873098502270761497777121563",
"213017259397632407956965982343556596700",
"212177329422696206686307490858778530857",
"85717952567310504093411256807132661578",
"73819540750987764161340499805013218610",
"276816200678854490922000371503787878784"
]
}
}
]