In the Linux kernel, the following vulnerability has been resolved:
NFSD: prevent underflow in nfssvcdecodewriteargs()
Smatch complains:
fs/nfsd/nfsxdr.c:341 nfssvc_decode_writeargs()
warn: no lower bound on 'args->len'
Change the type to unsigned to prevent this issue.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49280.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49280.json"
[
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2764af8ce0bf03cc43ee4a11897cab96bde6caae",
"id": "CVE-2022-49280-228ac9fc",
"deprecated": false,
"target": {
"function": "nfsd_proc_write",
"file": "fs/nfsd/nfsproc.c"
},
"signature_version": "v1",
"digest": {
"length": 646.0,
"function_hash": "304892727158680843093692453422348924401"
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@614a61e1592051cc42d3c38f899c9f7bdaad8a1d",
"id": "CVE-2022-49280-6fb5ffaf",
"deprecated": false,
"target": {
"function": "nfsd_proc_write",
"file": "fs/nfsd/nfsproc.c"
},
"signature_version": "v1",
"digest": {
"length": 646.0,
"function_hash": "304892727158680843093692453422348924401"
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@614a61e1592051cc42d3c38f899c9f7bdaad8a1d",
"id": "CVE-2022-49280-92d3af5d",
"deprecated": false,
"target": {
"file": "fs/nfsd/nfsproc.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"76787236209842138838784991812755214926",
"220984635008130985809678367838267614256",
"182088510541346572073573731253971053834",
"27033997971400270141415436899154519838"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2764af8ce0bf03cc43ee4a11897cab96bde6caae",
"id": "CVE-2022-49280-ddca0b79",
"deprecated": false,
"target": {
"file": "fs/nfsd/nfsproc.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"76787236209842138838784991812755214926",
"220984635008130985809678367838267614256",
"182088510541346572073573731253971053834",
"27033997971400270141415436899154519838"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@614a61e1592051cc42d3c38f899c9f7bdaad8a1d",
"id": "CVE-2022-49280-e00e6ae5",
"deprecated": false,
"target": {
"file": "fs/nfsd/xdr.h"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"108502037110284336660593669090201640315",
"248322763512690846959080589813869555234",
"170732709219156239845408100319478013753",
"293696096339561709272791694354057429639"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2764af8ce0bf03cc43ee4a11897cab96bde6caae",
"id": "CVE-2022-49280-f42067a7",
"deprecated": false,
"target": {
"file": "fs/nfsd/xdr.h"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"108502037110284336660593669090201640315",
"248322763512690846959080589813869555234",
"170732709219156239845408100319478013753",
"293696096339561709272791694354057429639"
],
"threshold": 0.9
}
}
]