Firstly check ur guitar for buzzing. If there is a bent to the neck. Take it to some luthier to check that..Else ask some experienced player to play the same notes to verify if its the guitar or the way u r playing the notes
For avoiding buzz while playing make sure u place ur finger tip either in the middle of the fret or close to the fret with proper pressure.
Guitars : USA Fender Stratocaster 1981 Collectors Series, Ibanez RG420eg, Cort X6vpr Snake skin, Custom Tele Style Guitar
Processor : Boss ME 70
Amps: Laney Cub10(4 Sale), Roland Microcube
Recording : Focusrite Scarlett 2i2, Shure SM57
For Sale: Sansamp Tri-AC