CVE-2021-47353
JSON

5.5medium

udf: Fix NULL pointer dereference in udf_symlink function

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: udf: Fix NULL pointer dereference in udf_symlink function In function udf_symlink, epos.bh is assigned with the value returned by udf_tgetblk. The function udf_tgetblk is defined in udf/misc.c and returns the value of sb_getblk function that could be NULL. Then, epos.bh is used without any check, causing a possible NULL pointer dereference when sb_getblk fails. This fix adds a check to validate the value of epos.bh.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2f3d9ddd32a28803baa547e6274983b67d5e287c, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 371566f63cbd0bb6fbb25b8fe9d5798268d35af9, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before baea588a42d675e35daeaddd10fbc9700550bc4d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 3638705ecd5ad2785e996f820121c0ad15ce64b5, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 80d505aee6398cf8beb72475c7edcf1733c1c68b, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 21bf1414580c36ffc8d8de043beb3508cf812238, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before aebed6b19e51a34003d998da5ebb1dfdd2cb1d02, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5150877e4d99f85057a458daac7cd7c01005d5c6 and 2 more
Not affected: before 2.6.12, from 4.4.276 up to 4.4.*, from 4.9.276 up to 4.9.*, from 4.14.240 up to 4.14.*, from 4.19.198 up to 4.19.*, from 5.4.133 up to 5.4.*
CVE List
linux linux_kernelbefore 4.4.276, from 4.5 before 4.9.276, from 4.10 before 4.14.240, from 4.15 before 4.19.198, from 4.20 before 5.4.133, from 5.5 before 5.10.51, from 5.11 before 5.12.18, from 5.13 before 5.13.3NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: udf: Fix NULL pointer dereference in udf_symlink function In function udf_symlink, epos.bh is assigned with the value returned by udf_tgetblk. The function udf_tgetblk is defined in udf/misc.c and returns the value of sb_getblk function that could be NULL. Then, epos.bh is used without any check, causing a possible NULL pointer dereference when sb_getblk fails. This fix adds a check to validate the value of epos.bh.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: udf: Se corrigió la desreferencia del puntero NULL en la función udf_symlink. En la función udf_symlink, a epos.bh se le asigna el valor devuelto por udf_tgetblk. La función udf_tgetblk está definida en udf/misc.c y devuelve el valor de la función sb_getblk que podría ser NULL. Luego, epos.bh se usa sin ninguna verificación, lo que provoca una posible desreferencia del puntero NULL cuando falla sb_getblk. Esta solución agrega una verificación para validar el valor de epos.bh.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47353 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47353 changed 2026-06-17Public domain