Subject: Null pointer dereference vulnerability in src/read-cache.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I am a static analysis tool developer, and I have found a
potential null pointer dereference bug in src/read-cache.h and would
like to report it to the maintainers. This vulnerability has the
potential to cause unexpected application behavior, crashes. Can you
please help me check it? Thank you for your effort and patience!

Below is the execution sequence of the program that may produce the
null pointer dereference bug.

Below is the execution sequence of the program that may produce the bug.
First, in the file diff-lib.c, the function oneway_diff assigns tree
to NULL on line 537.
Second, if on line 540, idx ? idx : tree conditional judgement is
false, tree, which is NULL, is passed as the 2nd argument to the
function ce_path_match.
Third, in file read-cache.h, the parameter ce of function
ce_path_match is assigned to NULL. and ce is dereferenced on line 41,
resulting in a null pointer dereference vulnerability.

Thank you for reviewing this report. I look forward to your response.

Attachment: image.png
Description: PNG image


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux