In the Linux kernel, the following vulnerability has been resolved:
cifs: potential buffer overflow in handling symlinks
Smatch printed a warning: arch/x86/crypto/poly1305glue.c:198 poly1305update_arch() error: __memcpy() 'dctx->buf' too small (16 vs u32max)
It's caused because Smatch marks 'linklen' as untrusted since it comes from sscanf(). Add a check to ensure that 'linklen' is not larger than the size of the 'link_str' buffer.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49058.json"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117560962276064502672212643461901703830",
"33958893892367200388610516562690784253",
"46347160300901274397730344767047186072"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-49058-10e485f1",
"target": {
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@22d658c6c5affed10c8907e67160cef0b6c92186"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117560962276064502672212643461901703830",
"33958893892367200388610516562690784253",
"46347160300901274397730344767047186072"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-49058-4274cc34",
"target": {
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1316c28569a80ab3596eeab05bf5e01991e7e739"
},
{
"digest": {
"length": 916.0,
"function_hash": "80375727582880453925384941295551277817"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-49058-44a0d029",
"target": {
"function": "parse_mf_symlink",
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@22d658c6c5affed10c8907e67160cef0b6c92186"
},
{
"digest": {
"length": 916.0,
"function_hash": "80375727582880453925384941295551277817"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-49058-5a78626a",
"target": {
"function": "parse_mf_symlink",
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e582749e742e662a8e9bb37cffac62dccaaa1e2"
},
{
"digest": {
"length": 916.0,
"function_hash": "80375727582880453925384941295551277817"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-49058-7b1baa79",
"target": {
"function": "parse_mf_symlink",
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@515e7ba11ef043d6febe69389949c8ef5f25e9d0"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117560962276064502672212643461901703830",
"33958893892367200388610516562690784253",
"46347160300901274397730344767047186072"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-49058-7b463a26",
"target": {
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb5f51756944735ac70cd8bb38637cc202e29c91"
},
{
"digest": {
"length": 916.0,
"function_hash": "80375727582880453925384941295551277817"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-49058-8b765631",
"target": {
"function": "parse_mf_symlink",
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb5f51756944735ac70cd8bb38637cc202e29c91"
},
{
"digest": {
"length": 916.0,
"function_hash": "80375727582880453925384941295551277817"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-49058-a1528474",
"target": {
"function": "parse_mf_symlink",
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1316c28569a80ab3596eeab05bf5e01991e7e739"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117560962276064502672212643461901703830",
"33958893892367200388610516562690784253",
"46347160300901274397730344767047186072"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-49058-a9ab1c1b",
"target": {
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@515e7ba11ef043d6febe69389949c8ef5f25e9d0"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117560962276064502672212643461901703830",
"33958893892367200388610516562690784253",
"46347160300901274397730344767047186072"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-49058-bc0f54e1",
"target": {
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9901b07ba42b39266b34a888e48d7306fd707bee"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117560962276064502672212643461901703830",
"33958893892367200388610516562690784253",
"46347160300901274397730344767047186072"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-49058-ddc1a377",
"target": {
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e582749e742e662a8e9bb37cffac62dccaaa1e2"
},
{
"digest": {
"length": 916.0,
"function_hash": "80375727582880453925384941295551277817"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-49058-ed6714c8",
"target": {
"function": "parse_mf_symlink",
"file": "fs/cifs/link.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9901b07ba42b39266b34a888e48d7306fd707bee"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49058.json"